Huge commit, moved all of Mechanics from PI to this mod.