Early migration code.
Splitted migration code into a different file.
Put commands into a log while the device is migrating.
More migration code.
More migration (everything broken again?).
Slightly less broken now.
Migration partially works now.
Properly restore channel state after migration.
Some minor optimizations and lots of timing debug output.