Added test for private JID handling.
Upgraded mocha to latest version. Fixed makefile for new mocha version vs coffeescript compatibility.