[WIP] Auto migration

Changes to migration api. Need to update changelog, examples. etc.

@tgoyne @jpsim