sp_filt_mkII: separate out rtree running, add obj persistance code

Separate out the code to run rtree creation.
Allow object extraction code to be run per cycle.
Add code to serialise and unserialise object locations.