Added mocha tests and ci.
Added support for created state of travis builds.