update mvn script to run on Mac OS X

* fix the way to find JAVA_HOME on Darwin (Mac OS X)
  to be able to use JDK 1.7
remove dead code

since HornetQ use JCA 1.5, there is no need to keep a list of optional
configuration properties that are not used at all.
WFLY-1375 Fix potential classloader leak with EJB async invocations
[JBWS-3642] Replace gnu-getopt:getopt with gnu.getopt:java-getopt
WFLY-1370 Allow CDI Extension to be loaded from static modules
This commit changes the way CDI portable extensions are loaded,
so they will be picked up from any module that has its services
exposed to the deployment.

This will both allow users to register portable extensions from
static modules, and also allow subsystems to more easily register
extensions.
WFLY-1377 Handle optional resource injection
[WFLY-1385] Override page-size-bytes default value

The max-size-bytes parameter default value (-1) is overridden in
messaging subsystem configuration to BLOCK at 10MiB.
If the admin changes the address-full-policy from BLOCK to PAGE, this
will conflict with the default value for page-size-bytes (10MiB) which
*must* be smaller than max-size-bytes.
=> override it to 2MiB to avoid any issues when the queues are paging
(and it has no incidence when the queues are blocking)
[WFLY-72] Adding PrivilegedInterceptor to JAXWS invocation chain
[WFLY-72] Adding AccessCheckingInterceptor too
either camelcase acronyms or don't, but pick one
WFLY-1389 Weld subsystem needs dependency on validator api
WFLY-513 JPA 2.1 (switch to Hibernate 4.3.0.Beta2, started JPA 2.1 changes, use JipiJapa for Hibernate 4.3.x integration
do not require to know both listener type and listener name to use this service
WFLY-1393 Shared TLD's not being handled correctly
WFLY-1360 Improve log message when registering a handler
WFLY-1401 Remove check for valid service names

The JVM is actually much more lenient than the Java language
spec, and pretty much every time this warning has appered it
has been bogus.
Undertow Alpha17