Feature/3.x/multitenancy

Add functionality for the hosted mancenter.

This is disabled by default, so normal users won't see any extra in their logs.