add a git plugin
Add proper support for running as a daemon