Implemented new routing system with reversal capabilities (not hooked up with the rest of the framework yet)