Add some GNU readline compat functions for prompt handling and redisplay

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Travis CI integration

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>