Massive port to django from flask.
Reduced duplication of code when calling rest web services.
Added basic support for registering new users