Use 'media' type for file upload.

The failing tests now pass.
More metadata can be retrieved when the following PR is going to be merged to Eve#develop branch: https://github.com/nicolaiarocci/eve/pull/304

With this patch the images are returned as base64 encoded strings.