Implement CORS for upload endpoints.

SDUX-38
Use gravatar url in case user picture is not set.

On user read add gravatar picture url if it's not
set already.

SDUX-39
Add superdesk.url module for url utils.

Now it has urlencode working for both python3.3 and python2.7.