Redo Debian packaging.

Increase version to 3.1.0.

Not ready for release.

Change-Id: Icd91e4a0432a39d93ad5320db377829dd7ea2e5e