And an additional BufBinWriter to ease buffer management.
Simplify error handling.
* added persistence of assets and spentcoins. * contract params * bumped version