Test the low-level code in uloc.c

Also, tweak the debian build infrastructure so that we can pass
in arbitrary CFLAGS.

New program test_server that links with the non-main.c parts of
the server.  Currently only (as above) tests the low-level bits
of uloc.c.