fix compile warnings
Reimported and resolved conflicts from before transactional_db branch
Make our simulated time adjustable into the past
Allow an empty callback when scanning blockchain
more test fixes