Search user and file lists with '/'

Still a little weird:
- not displayed
- need to press enter to exit search mode
Fix memleak as hinted by Yorhel
Show ui_textinput for search
Move cursor to ui_textinput-specified position
Use automatic typedef for struct ui_cursor_t