added testing basics, updated connect-mongo and adapted setup accordingly, some cleanups
environment switching and enforcing, mongoose connection depending on env