Record mode

This pull reuqest contains changes for: [The shell should provide record-mode](https://github.com/rainu/jsimpleshell/issues/46)