attempt to port to yesod1.2

attempt to port to yesod1.2, needs some more work.