Implement cleanup for spatial views

It's now possible to cleanup spatial views. This is needed for queries
during and after rebalancing.

Change-Id: I431fecbcecb1276271c9ed5930e4bf304c5ef412