Split off teleport stuff from commands module into its own module - should close #930