Gradual work towards SPV. ChainDb still very lacking
Minor fix
Add a basic json endpoint for monitoring