Add Debian support. Initial stab at tests.