Fix permission on cache/upload after upgrade

The daemon complains about cache/upload after the updater upgrades the installation. This should fix the permissions.
Merge pull request #365 from alok0/master

Fix permission on 'cache/upload' after upgrade
mysql schema: remove theme_id index pointing nowhere
Updated translation for pt_PT.

Still a work in progress...
Merge pull request #369 from zedascouves/patch-1

Updated translation for pt_PT.
Make search mechanism pluggable

Currently, TinyTinyRSS can use raw SQL or the Sphinx search engine
for searching.  It would be nice if other search engines (such as
Xapian) could be used, or if features of the underlying SQL engine
(such as MySQL's FULLTEXT indexes) could be leveraged.  This commit
makes searching into a plugin hook, falling back to the builtin behavior
if no search plugin is active.  The Sphinx search behavior has been
broken out into a plugin.
Stop after first search plugin

The sanity check should have caught any extra ones, but it doesn't
hurt to be careful
mention config.php settings in search_sphinx plugin description
search_sphinx: abort if system client library exists
Update translation for zh_CN.

Fix translation errors, and add translations for new texts.
Merge pull request #370 from Hao-Wu/master

Update translation for zh_CN.
rssfuncs: mention local cache filename for easier debugging
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
fix several login parameters not being passed through OTP form
prevent cdmClicked ctrl-click handler working on article body
fetch_file_contents: do not set referrer when using curl
Added HOOK_FORMAT_ENCLOSURES plugin hook.

Runs HTML and enclosures array through a plugin hook when rendering an article's enclosures in format_article_enclosures(). Allows plugins to override handling of how enclosures are presented by either filtering the array of enclosures, or generating the HTML to add to the article content.
Changed how the enclosures array is checked for content so an empty array is not processed. Fixes a change from the previous branch commit.
Merge pull request #374 from dzaikos/plugin-hook-enclosures

Plugin hook enclosures
Add subscribe hook, give more information to fetch_feed hook