Switch to readline and add very basic autocompletion