Basic exception handling with templates. Added support for request attributes to controller arguments.