Allow subclasses to hook into before/after render

This allows a subclass to safely implement code that executes additional handlers before or after a route-matched handler.  For example, this is useful for a subclass that wants to implement its own prefilter or plugin system.