Implement HTTPS server support.

Rewrites strukturag/phoenix#2 in order to eliminate API changes.

Also adds an integration test which launches a HTTPS server.