migratebundle: further migration functionality

Still to come: relations.