Add postgresql support.
Drop thinking_sphinx and start using pg_search.