Work on routing revamp.
Fix bugs in routing.
work on env detection.
Extracting methods in application.
Continued refactoring on the Application object.
Move method around.
Work on application code.
Cleaning up some code in the routes command.
Work on application.
fix conflicts.