Host Management Module

Implements #59 as well as some fixes and additions I found while coding the module.