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
Set MAX_FD_LIMIT correctly for mac os x
Ignore kdiff3 .orig files
Added module com.mysql
      com.mysql:mysql-connector-java:5.1.25
Added mime pull for handling large attachments with SAAJ to com.sun.xml.messaging.saaj module
      org.jvnet.mimepull:mimepull:1.9.2
Upgraded sun.saaj-impl to 1.3.21.aspan-1
Added httpclient-cache to the org.apache.httpcomponents module
      org.apache.httpcomponents:httpclient-cache:${version.org.apache.httpcomponents.httpclient}