Collapse the unregister* functions into a single one

We register callbacks for every context mounted, either by servlet or
HttpHandler, so either can be unmounted by calling unregister(context)