state total metric

We should probably throw an exception object rather than a string here. The toolkit has a base class for this. See https://github.com/praekelt/vumi-jssandbox-toolkit/blob/master/lib/interaction_machine.js#L44 for how it's used.