new app.coffee format, closes #160
refactor tests