Debian packaging for r3

This should work on all dpkg-based distrobutions, including Debian, Ubuntu, Linux Mint and so on. Tested in Debian Jessie and Ubuntu 14.04.