add support for daemonizing the agent
load the correct config file
Merge pull request #10 from sazze/patch1

add support for daemonizing the agent