Changes to make LSM externally usable.

Actually export the right functions, Eq instance, etc.