feat: persist and restore target height via MetadataStorage
#476
+643
−310
MetadataStorage
#476