Chai and mocha tests added
Channels and socket tested and improved
Coffedoc is used instead of docco
Other improvements and fixes