Major code cleanup
Aded http error handlers
New routes definition scheme