Bug fixing + 50% testing
* New correct implementation of primary key filtering/ordering (as well as field filtering/ordering)
* Added shutdown feature
* Added final compact on shutdown