finishes the refactoring

Allright, so now the previously humongous host is split into 400 lines of ensugar, 400 lines of conversions and a bunch of irrelevant helpers. Looking forward to hacking additional features into the newly stratified architecture!