Pull out application.listen from the `server`.

Also renamed the `serve` method of the server to an initialize method.
Create the HTMLWidget on the server.