Added a error response function, that returns a JSON encoded string with
the error message.

Added base for routes, not sure if this is the way I want to go though.
Use strict slash routing