[WIP] Fts queries v2

Replaces #653

Add full-text query search to the REST API. This is a first step towards the ability to search queries from the website based on their query string.