InputHandler: complete_word knows best when not to complete
minor cleanups in complete_word
add kak_timestamp env var to access current buffer timestamp
Add an experimental configurable input completion fonction

The completions option (a std::vector<String>) is used for
completions candidates, if it's first element matches the current
cursor position and buffer timestamp.
NCurses: handle empty items in menu_show