Fixes for running Mylar with reverse proxy + SSL

Added a https_force_on configuration option (defaults to false) that
when enabled will force all Cherrypy requests to be https. Also added
some other tweaks to fix issues affecting Mylar when running in a
reverse proxy.