When trimming spaces, skip read-only attributes.
use long instead of int in AjaxFileUpload classes
fix calculation of average session memory

WOStats page did show wrong or even negative numbers
better naming of method
track thread names for warn traces
minor fixes
Fix FrontBase prototypes for correct time zone handling of Joda Time attributes.
AC-1754 ERXExistsQualifier was doing a global replace of the key in the select statement but should have only replaced once. Without this fix, we cannot reliably chain ExistsQualifiers.

Signed-off-by: Aaron Rosenzweig <aaron@chatnbike.com>

Conflicts:
	Frameworks/Core/ERExtensions/Sources/er/extensions/eof/qualifiers/ERXExistsQualifier.java
Modified table alias matching code to avoid incorrect matches when Postgressql. When trying able alias declarations for t4 and t8, it would also match variable bindings for that had a datatype of int4 and int8 e.g., “?::int8” and “?::int4”
Fix prototype class names to match the naming convention that we changed to, oh, say 5 or 6 years ago. Always good to catch these things early!
Update FrontBase plugin to use EOSchemaSyncronization.
Check for read-only object as well. Thanks, Johann!
Merge pull request #495 from fbarthez/DontTrimReadOnly

When trimming spaces, skip read-only attributes.
some optimizations for #495
use StringBuilder instead of StringBuffer
remove unnecessary brackets around StringBuilder constructor
pass char instead of String to StringBuilder/StringBuffer where appropriate
small optimization
Use the correct protocol for S3 attachment URLs based on the request security level

Problem: the generated URL for S3 attachments always uses the HTTP protocol. In the context of secure requests (made over HTTPS), the generated URL should use the HTTPS protocol instead.

Solution: Chosing the URL protocol during persistence of the attachment is not ideal because the attachment may be used in secured and unsecured contexts later. The correct protocol should be determined during the URL generation. This patch replaces the HTTP protocol and removes the port (:80) from the generated URL whenever the request is secure.
Fix the attachment URL only if the attachment is not proxied