Ensure rake tasks don't run on top of each other
Open pid file in 'w' mode
Remove cruft
Update commment about default_confidence
Add TODOs for logging