Moved all source files into /src
Moved api document into /doc
Added autoconf for project

This involved writing a more proper Makefile.
Also, I forced the build to happen out-of-tree.
I also succeeded in keeping autoconf and its mess
confined to a single directory!
Fixed a minor potential bug in signal logging