Simple state machine for your Chaplin / Backbone app.