refactor lua interpreter: clean up readline uses
refactor lua interpreter: move readline uses (history expansion)
add support for pageup / pagedown in lua_interpreter input bar