Merge pull request #43 from daveeloo/appify

Appify

Amazing work by @daveeloo on cleanly moving things into the app where appropriate.
Made changes for deployment on Dotcloud