Modularising server code

* Moved page routes to separate module
* Moved rest APIs to separate module
* Moved database configuration and creation
Merge branch 'master' of https://github.com/chhetrisushil/nodeleveldb

Conflicts:
	server/app.js