* Make media repo use error rather than jsonErrorResponse * Update comments * gb vendor github.com/pkg/errors * Fixup error formats