PR #94: Corrected use of 'header'.
Added error handler for http requests.
Refactoring.
PR #94: Storing of route requests