fixed js compile-time 'warnings'
no more split document into DocumentLines; ultimately superfluous to do so
further modularized the routes definitions
Merge remote-tracking branch 'upstream/master' into feature/multibledocs

Conflicts:
	routes.js