since commit 1db1643 tried to set the default file storage to local files (backed out in a62f694), set the default file storage to "localfile" again and implement the local file download storage writer subroutine which saves downloads to /data/<downloads_id>.gz by default
Properly check for JDK on both older and newer Ubuntus, print out a more explanatory message when not found

This reverts commit 542ee2698106099687970138fcbcc4d13ff8b035.
fix bash syntax
add wiki/index.php pattern for undateable pages
create new database connection for each connection to avoid connections stuck in a bad transaction
merge from master