Adds server side tests using mocha

Additionally added a directory for server and related modules