Fixes debian packaging, patch from Thomas Goirand

Add default configuration file on package installation.
Update UID and GID in configuration file.
Clean some functions.