convert some code to coffeescript + add support for optional url + change expressos to mocha ... sorry for the huge commit