Fix mention-related issues

The mention search is now only triggered if the user paused half a second during typing. Furthermore, previous AJAX requests are now aborted fixing issues when "delayed" requests return their data even though they are not needed anymore.