Reworked index architecture.
Buggfixes in the binary store.
Minor changes to lock mechanics in binary store