Re-organized server code for Resource pool register.

1. Server now have a .db ref for explicitly handling connection and
model registering. This is also very good for AdminGen and auth routes
to register as Resources.
2. data api (mers) now use this new .db as mongodb connection ref.
ToDo:: refine url. (/api, /logic, /uploads, /dev/, /gen) -- pre-set atm.