refactoring server to use mongojs and dynamic collections