HTTPS support

The application now supports https.