Fix document access from version page, documents' tab.

Corrects an issue on this specific page: when clicking on a file with a path on it, the languages' list does not get updated with the available languages.
Merge pull request #565 from zanata/doclist

Fix document access from version page, documents' tab.
JSF performance improvements - https://github.com/zanata/zanata-server/pull/566

Squashed commit of the following:

commit 2e1df8385401f8cadb47d5c89096c5c8ad2fc0a4
Author: Carlos Munoz <chavo16@hotmail.com>
Date:   Fri Aug 29 15:45:10 2014 +1000

    Manually import jquery in case richfaces doesn’t.

    This will not generate an extra request for the jquery resource, since it’s using outputScript, JSF is aware that it has already imported it.

commit 79e7aca7704052203ce08bba45a86839631f70f8
Author: Carlos A. Munoz <camunoz@redhat.com>
Date:   Thu Aug 28 17:12:34 2014 +1000

    JSF performance improvements

    - Enabled resource optimization which allows richfaces to compress and unify several of its javascript and css resources into a single request. This mode can be disabled by setting the project stage to ‘Development’ (see web.xml).
    - Switch several internally served javascript resources to use the JSF resource filter to allow for caching.
    - Replace Richfaces’ provided JSF jquery with a higher versioned one. This script is now back in the war file.
    - Remove unnecessary inclusions of the richfaces provided jquery library.
    - Reorganize some javascript resources to the bottom of the page per best practices.
    - Upgrade Richfaces libraries.
Prevent update missing docStatus cache
Merge pull request #569 from zanata/fix-cache-update

Prevent update missing docStatus cache
Merge commit '95bbfad' into integration/master
Allow changes in whitespace
Merge pull request #570 from zanata/fix-email-test

Allow changes in whitespace
New startup banner (italics).

Pull request: https://github.com/zanata/zanata-server/pull/568
Fix multi-line handling
Fix editor and project tests

Editor buttons changed
Upload forces only supported types
Single field on first version created
Also, there is a version languages setting behaviour that needs to
be reviewed. Ignored for now.
Merge pull request #572 from zanata/fix-editor-and-project-tests

Fix editor and project tests
Use rest caller in upload tests, fix breakages

There were a few errors regarding project and version creation.
Using the ZanataRestCaller removes these and reduces test runtime
by roughly 10 seconds where a project and version needs to be
created.
Also make the contact admin test less strict.
Merge pull request #573 from zanata/use-restcaller-in-uploadtest

Use rest caller in upload tests, fix breakages
Send Velocity log to SLF4J (via Commons Logging)
Enable connection debugging
Enhance ConnectionWrapper: logging, configuration, mariadb

- Log information about database and driver.
- Check for supported database/version.
- Add system property 'zanata.connection.use.wrapper' for explicit
  control.
- Disable connection wrapping for mariadb as well as mysql.
- Log what ConnectionWrapper does.
Merge remote branches 'origin/integrate-velocity-log' and 'origin/fix-connection-wrapper' into fix-login-redirect-loop