Fix tests that break on Wildfly

These tests are more generally robust as a result.
Merge pull request #588 from zanata/fix-ftest-wildfly

Fix tests that break on Wildfly
WildFly fixes, test configuration and dynamic ports

Merge pull request: https://github.com/zanata/zanata-server/pull/567
Squashed commit of the following:

commit aae9a3424d92cb4c58d14516120a0bd22d1bd877
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Fri Sep 19 16:05:10 2014 +1000

    Switch embedded wildfly to managed

commit b688b87926a3e2ae251d59c8dcbb3e84079f9bcd
Author: Carlos A. Munoz <camunoz@redhat.com>
Date:   Fri Sep 19 13:54:56 2014 +1000

    Correct issue when logging out from certain pages.

commit 991bd93320603a3a7f62b0a43e77d1caddd9b7b1
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Fri Sep 19 12:48:44 2014 +1000

    Activate profiles with -Dappserver=(jbosseap6|wildfly8)

commit 86f1565de2da801aeefbe5613f7a2324ab0447bc
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 18 21:04:11 2014 +1000

    Change allocate-jboss-ports to work in Jenkins

commit 97a2b0494765c01e48b8f9d22f3616a8edf6c0d2
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 18 16:33:15 2014 +1000

    Fix port

commit 9da422affd7fb2212259736a9b115ed954fa608f
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 18 15:20:57 2014 +1000

    Remove use of tmp war (cont.)

commit 83473570b87e954ad97c9db0d4429a345c3058a5
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 18 15:11:39 2014 +1000

    Correct management port for wildfly

commit 6d93043245e653c373b02a3ccc6dc8884dcdceb3
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 18 13:40:40 2014 +1000

    Remove misplaced Maven property expression

commit 47957cbe8a594206825d760389fb6d974ee25f5a
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Wed Sep 17 20:48:04 2014 +1000

    Clean up pom for static analysers

    - Update shrinkwrap and transitive test dependencies to satisfy
      RequireUpperBoundDeps
    - Exclude org.jboss.remoting3 (duplicates org.jboss.remoting classes)

commit ddb30e4558fe232dd79508b73f93b7496e77bdcc
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Wed Sep 17 18:18:36 2014 +1000

    Allocate ports separately

commit 5a2dca806c9ffdc9d69792ec778128cc3a17da3b
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Tue Sep 16 14:11:44 2014 +1000

    Split arquillian config into two profiles: jbosseap6 & wildfly81

commit 82ead14a9a54f73a1134323de0b3880fee8d4d03
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Tue Sep 16 10:17:56 2014 +1000

    Remove use of tmp war

commit 949b2bb18ba48094d67be3bfa4a78603c9739f55
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Tue Sep 16 10:48:53 2014 +1000

    Fix profile activation on Maven 3.2.2+ (MNG-4565)

commit 21cae282cd0554337c702ec7daa838a794462d1e
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Mon Sep 15 21:02:45 2014 +1000

    Control WildFly ports via environment variables

commit 358c87a335c2d2a602c0e8dbb580568dde0cb377
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Mon Sep 15 16:16:22 2014 +1000

    Rewrite allocate-ports in Python for faster startup

commit 1f4c2225090413a6c06da55f4495cc9ae3ca3939
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Mon Sep 15 15:59:31 2014 +1000

    Generate unused port numbers for JBoss using Groovy script

commit 529d8eb19973c429bfe1c198259f171546c6193c
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Fri Sep 12 15:39:42 2014 +1000

    Make ports configurable via system properties and env vars

    Also set port-offset=0 and adjust port numbers manually (by adding 100)

commit cacfcef2cf760d11036992ac128d8be33e3fbb14
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Tue Sep 9 16:35:34 2014 +1000

    Log permission check failure as WARN, success as DEBUG

commit 68823a3482fdad71f8c1c09e2d0b7467cf1fac0b
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Tue Sep 9 13:29:54 2014 +1000

    Adjust programmatic log config in ZanataInit

commit b7d45cb9fa306c8c83be34dbb8a233764670b9ac
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Tue Sep 9 10:23:01 2014 +1000

    Delete HTextFlowHistory before HTextFlow

commit 5419e0f9cf0dd0b0501e0c3da4537af2e22d70a1
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 4 13:11:48 2014 +1000

    Enhance connection wrapping: 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 WrapperManager does.

commit 1d6a942164a3cf4ec8b1d842861d920097b43026
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Thu Sep 4 12:56:38 2014 +1000

    Enable connection debugging

commit 4fafeeefd215ea25d27b791bcff51cd9d1199b65
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Wed Sep 3 10:53:48 2014 +1000

    Send Velocity log to SLF4J (via Commons Logging)

commit ff71c09d1cd306586f32ae4fcd954ee06fd2a484
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Fri Aug 29 15:16:28 2014 +1000

    Add workarounds for WildFly bugs: WFLY-3617, WFLY-3744

commit 1e3e8894cfbca5cfcda12b69c2f1c1061aa44ff4
Author: Sean Flanigan <sflaniga@redhat.com>
Date:   Fri Aug 29 15:13:57 2014 +1000

    Put GWT dependencies last to ensure they don't override Java APIs

commit a80270fd1b6d1c4802710cac34bca3a33e54e8cf
Author: Carlos A. Munoz <camunoz@redhat.com>
Date:   Thu Aug 28 09:03:48 2014 +1000

    Fix issue when logging out in wildfly.

    An unnecessary logout.xhtml page was being used to be able to capture the request, perform the logout and redirect to the home page again. This is not necesary and might be causing an intermitent problem in wildfly.
squash merge improve push performance

https://github.com/zanata/zanata-server/pull/571
Make the timeout period for webdriver waits configurable

Use -Dwebdriver.wait to set the maximum condition waiting period.