Add migration functionality to generator.
Update readme with new functionality.
Move preference configuration to lib directory.