Flatten man and share directories

The `man` and `share` directories in this project had an unnecessarily
deeply nested structure. Flatten it.
Re-write using GNU autoconf and automake

Replace the `Makefile` with a `configure.ac` and a set of `Makefile.am`.