Merge contracts support into `develop`

The big issue here is the bump to version 10.0.0 and the necessary associated block db rebuild, used for adding a couple of new columns to the table `blocks`.