Ignore Emacs backup files
The deb package should depend on lsb-base

As it assumes we have init scripts
Don't fail if the data directory has been deleted before
Base the init script on the default template

as found in /etc/init.d/skeleton or from dh_make.
Make sure all files are installed according to fhs

i.e. config files go in /etc/opt/daisy-pipeline and modules are in
/opt/daisy-pipeline/modules instead of /var/...
Fix a problem with 'local' not inside function
whitespace cleanup