added agent support
added agent support
Merge pull request #1 from goinstant/leighmartell/add-agent

Ian says LGTM