Various fixes for package debianization

Hi,
Here are a bunch of changes I did in order to fix various warnings and create a debian package that passes Lintian without too much errors.
I didn't include the debian directory here yet. I need to figure out a few things first.
Some of these changes are quite disruptive so please let me know if this is a problem. As an example, the manpages have been moved from man1 to man7, according to the Debian policy: http://www.debian.org/doc/manuals/maint-guide/dother.en.html#manpage
Not sure if we can accept that or not. 
Thanks,
Mathieu