Implement a BaseHandler.handles decorator.

BaseHandler now has a .handles method which may be used as a decorator to register types handled by a handler.