See #9, #10. Add Readline support, with history and auto-complete.