Added flexible migrations module to the 3.1 branch