Reorg mitigation

these changes attempt to handle reorgs/orphaned blocks without restarting the process through persistence and a copy-on-write scheme in the SP database.

so far we have checked support for basic sends and basic crowdsale issuances.

Still need to check some crowdsale stuff and manual issuances.