First steps towards a Debian library package

Part solutions for #2 and #3.