Add removal from free list WIP

Plus refactored key scanning to be used in reads and writes.
Bit WIP, doesn't even compile, etc, etc.