Move to a package structure.
Add support for signing transactions.

However, binary format serialization is missing, so the signing
is not that useful.