Moved the server startup code out of main.go