Support generic return values on submitCommand.
Remove leader's tasks prior to running them in order to prevent infinite recursion by recursive tasks.
Merge branch 'master' of github.com:kuujo/copycat