Add an interface for handlers, rework the manager to always use the interface instead of doing dodgy exported stuff.