Add mocha test framework
Add core tests and doc updates