storedChainHeight improvements

Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
added a easy nanobtc formatter

Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>