Support migrations. Closes #7