Implement HTTPS API with self-signed cert

Switches API to serve all requests over HTTPS, using a self-signed SSL
certificate.
Add support for manually specifying cert/key files
Merge pull request #160 from hybridgroup/api-https

Implement HTTPS API with self-signed cert