Fixing git and coffeescript errors

* Changing to coffee-script/register as required by newer version of
coffeescript
* Adding .gitkeep in lib/ to make sure that directory always exists.