Move generator to lib dir; Create gem files; Change loading of model and metamodel in generator