Library reorganization and cleanup

This rearranges things to get this into slightly better shape
and includes a basic makefile with libdmp and test targets so
it should be a little easier to get up and running quickly.

I try to be really clear about the early state of things.