Seperated routes into many files and set up auto loading.
Moved out the render step.