Adds optional build numbering to the .deb package building scripts.

Probably not ready to merge yet, needs some discussion.