Switch to Autotools for build and add a debian package creator.

Convert the build system to autoconf/automake, not that it was really needed since the whole build process is quite simple, but it make things easier to create packages from it. Add a dpkg-deb target to create a debian package and also add a simple man page for quick reference.