Improved port request behaviour by implementing async web requests.
Moved the default port to 8080 to avoid common conflicts locally.
Added code to detect the platofrm the server is running on to use the right initialization and daemonization.
Tightened timeout settings and removed some debug logging.