package/base-files: move service* functions from /etc/rc.common to /lib/functions.sh