Check if port is in use before attempting to start server. Closes #1619
remove extraneous write space
use TCPServer instead of TCPSocket
Exit with status code 1, dont use tcpserver
make dev server only listen on 127.0.0.1
Merge pull request #1888 from rashidkpc/fix/check-port

Check if port is in use before attempting to start server.