Added super basic exception handler for routes.
Put "var" in front of configuration variables.