Catch up yesod-platform-1.2

migrate Model
Catch up yesod-platform-1.2

migrate Foundation and arount it