Added global current state tracking, and improved CLI

Renamed commandList to commands
Add global current state tracking to bpm.js (necessary to avoid circular depends)
Updated dependencies for states.js and cli.js.
Added bubble spawning to Field
Updated/fixed error handling, added commandEnabled tracker in states