Add Readline support to the shell adapter. Closes #51.