simplified app. added app factory
 removed breaking change
removed some bad whitespace
Merge pull request #10 from foundatron/refactor

Refactor