First implementation of the application api. This provides functions to open a socket, run a simple webserver and launch chrome.