Read configuration from file
Added sprinkler runner
Added tests and fixed a couple of issues (mostly related to pid file)