Moving functions from server to router
Merge pull request #3 from alemela/hackathon_nodeb2

Moving func from server.js to router.js