Adapt init scripts to use LSB helper library instead of RedHat specific library

Both Debian and RedHat distributions have /lib/lsb/init-functions, whereas /etc/init.d/functions is a RedHat-specific file.    We don't use anything special from the Red Hat library, so using the LSB version means the same init scripts should work on both types of distribution.