Updating some really old code.

It's been a while since I've looked at this monster. I really like the
idea behind this but I get the feeling most of it needs to be
rewritten. Moving things into a sub directory, taking inspiration from
the awesome h5ai. http://larsjung.de/h5ai/