Bug fix: Allow callable callback functions to be registered to a route (not just global functions)