Save port when initialising http server.
Add basic template structure.
Wait until http server responds.
Change some port references to string format.
Open browser after server is on.