added command history

The animated gif needs updating but we should wait until things stabilize.
It may be silly but this was for speed since this code affects every Atom command.  I learned how fast binary math was while working on emscripten.