refactoring agent service
Merge pull request #17 from pall-valmundsson/fix-external-agent-runner

Refactoring of agent service