Unittest and cleanup
+ main.js correct typos and add login function
+ makefile correct mocha calls and add dtest (debugg test)
+ unitTest test all functions in main.js
+ fakeTS3server