Improved Debian packaging

Not perfect yet, but it works, is compatible with the old version and easy to merge upstream.