Added basic logic to run migrations
This is built on top of !3 (merged) and !4 (merged) and should be reviewed after these got in (or if you want to check it out before, I suggest looking on the last commit only).
It adds the basic logic to run a migration on the database.
Edited by Felix Delattre