Made readline an object command to fix a number of memory leaks.
Added commands "readline text" to retrieve the current input
and "readline update" to redraw the current input.