Move jasmine to dev-only dependencies
Fix some URIjs porting issues
Switch entirely to Mocha and get everything working in node and the browser