Add server/constants.js module
Implement refactoring fro server/routes.js module
Small codefixes