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
Fix test Editor page validation settings button
Merge pull request #578 from zanata/test-fix-validations-button

Fix test Editor page validation settings button
Merge remote branch 'origin/release' into integration/master
Set max PermGen to 256MB for surefire
Fix focus on selected transunit in editor and long string in tu details
Add test log steps to page functions

Each function states what the purpose is, so that the developer
can immediately see where the test was at the time of failure.

Also removes some minor duplicated code and fixes editor page
column query.