mzero/plush — pull request #16 by mzero (2012-11-15 02:16:21+00:00)
Title: Embed static and data files in executable

This set of changes allows Plush to be built in Production mode where the `data` and `static` trees of files are directly embedded in the executable. This means that there is no need for installation, or setting `plush_datadir`.

The branch is in three change sets:
* Refactor the build to support Template Haskell (ask me if you want the gory details of why)
* Add `getDataResource` and `getStaticResource` functions, and re-write the `staticApp` handler to use the later.
* Refactor the JSON API dispatch code (this is just a bonus)

Not sure if it will be easier to review all at once, or as three separate changes.