Dancer::Core::Dispatch responds to changes of path_info by before_request hooks

Currently, changing path_info within a before_request hook is ignored in Dancer::Core::Dispatch. The proposed change re-scans the apps and their routes to match the new path_info and method. A single test is included along with this change.