ALL: Add optional support for readline library

This provides improved text input handling, including history.
By default use of readline is disabled. You need to edit the Makefile
to enable it.