Many problems with setLocale and request.getEncoding() in Tomcat. This seams to be a knowen problem on the web with various workarounds suggested but not totally working. This code uses a work around to fix the problem but is likely to cause problems onother platforms. Encoding added to config file and URLEndoding reworked. It all works perfectly on my laptop but there may be bugs in other environments. This is a ci of all known bugs fixed so the code can tested and got into release state.
Repaired the config of thumbnail size and page location. Needs more testing. Fixed the parameter encoding agian. The problem was that if files have german umlauts in them then they were encoded in UTF-8 not the encoding of the response. This has been tidied up and fixed. But if you set your local to be Russia then you can not see files with gernam chars in them becuase these chars do not exist in the locale encoding. This needs a force local config setting and some explanation in the manual and then I think it is acceptable. The alternative is encoding every page in UTF-16.
Made thumbnails process synchronously so we don't have a bunch of broken thumbnails.
We can do this now since directories are being scanned much less frequently now.