Irmin compiles

Now need to hook back the backends again.
A little bit of reorg
More clean-ups.

The high-level interface is now much cleaner, it looks like a normal mutable store with snaphoting capabilities.