Implemented state() in ChainNetwork.
Changed end2end test a bit. Created PushButton interface.