allow for bucket/avatar urls, clean up some code around prefix/path generation
unit test fixes
add error response for media types errors
separating image-type detection to separate function /cc @drsnyder
tests for route-params->image-type
Merge pull request #29 from Wikia/PLATFORM-529

support for avatars