Move some functions to Utils.hs.
Move web app to App.hs.
Separate into a executable and a library.
Merge pull request #14 from chiro/separate-lib

Separate into a executable and a library.