Change the result_title returned from a fulltext CJDB search to prefer the main title if it's in the results, falling back to PostgreSQL tex

Main code rev. 2008