Refactor to namespace.
Move templates
Merge pull request #662 from drak/errors_ns

Refactor Errors module to namespace