Removed all the async stuff since it was getting too complicated.

I'm going to live with the 90% chance that the server will start before the browser starts requesting for pages so that the code is simple and works easily cross platform.