Refactor Agent class
Move error-message formatting code to separate error modules
Merge pull request #171 from golyshevd/refactor-agent

Refactor Agent class