Replacing hostname/ssl with base_url

Removed 

    HOST = os.getenv('host', '127.0.0.1:8000')
    SSL = os.getenv('use_ssl', False)

Added 

    BASE_URL = 'https://%s' % os.getenv('host', '127.0.0.1:8000')

And a bunch of PEP8 fixes.