Support for Yesod 1.2

Please test/review it before merging, as I am not an expert in last Yesod changes. It compiles for me, but...