Added accessor for routes for better design.
Implemented the Ajax class.