Replace app methods with plain functions
Merge pull request #29 from sebn/plain-app-functions

Replace app methods with plain functions