Simplify error handling.
* added persistence of assets and spentcoins. * contract params * bumped version