Controllers

It might still be very early for this (and untested and all), but I'm PRing it for you to review or grumble, as case may be. :)

Intended points: quick-write of the other controllers as OO, refactor out a few queries, consolidate low-level functions in 'model-like' subs, than in what was Managexxx.subs.