Bunch of fixes to the debian packaging, init scripts, etc.