added command history

The animated gif needs updating but we should wait until things stabilize.
Wouldn't this be simpler?

```coffeescript
@logIndex %= logSize
```

Then you don't even need the `logSizeMask` variable and you don't need to keep `logSize` and `logSizeMask` in sync.