Moved hosting related things to its own module

Also tweaked the mmr command