Break out mongocommon stuff, fix init.d scripts, make tock into a constructor, add debug module, add envcfg module