Better error handling, change localhost to 127.0.0.1
Removed server 'error' event
Merge pull request #1 from aviramst/master

Don't open browser if server is not listening, change localhost to 127.0.0.1