Various tweaks to enable SQL support

* Implement Scanner interface on some types
* Add NodeId() WIP
* Remove NewHashable()
* Add NewTransactionWithMetadata()