Add option to register callback methods to be called when each URL  is processed