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