Move server to server.js
Move parsing to seperate module