Low: jboss: remove a bogus option in the default of run_opts

'-l lpg4j' was a typo of '-l log4j' and the option should have never been effective by default.
Low: jboss: eliminate bash dependency
Low: jboss: correctly pass the environment variables with space characters
Low: jboss: change type of rotate_consolelog from string to boolean
Low: jboss: add output_thread_dump()
Low: jboss: add wait_process_exit() to remove redundancy code
Low: jboss: add finished message of start and stop
Low: jboss: skip the unnecessary processing at the time of the JBoss stop
Low: jboss: cosmetic changes

- replace tabs with spaces
- improve indentation
- Delete unnecessary spaces
Medium: jboss: add jboss_version parameter to support JBoss 6

The usage of JBoss was greatly changed as of JBoss 6, and also
the appropriate default values have to be set for each version of JBoss.
You need to specify the version of JBoss manually
because there is no reliable way to detect the version of JBoss.
Medium: jboss: add run_command parameter to change the start up script
Medium: jboss: stop the JBoss daemon by sending a signal on JBoss 6

The stop script shutdown.sh no longer exists in JBoss 6.
Instead, sending SIGTERM is the proper way to stop the JBoss 6 daemon.
Medium: jboss: add jboss_base_dir parameter to support multi-instances on JBoss 6
Low: jboss: jboss_home is no longer unique in the multi-instances configuration based on jboss_base_dir
Low: ocft: jboss: add test case for jboss
Medium: apache: better handling of not installed apache

The RA misbehaved in case apache isn't installed (failed stop,
for instance).

- [ -x $VAR ] does not work if VAR is null
- avoid ugly basename(1) error
Merge pull request #282 from dmuhamedagic/apache-notinstalled

Medium: apache: better handling of not installed apache
Merge pull request #281 from nozawat/jboss6-support

Correspondence of JBoss6 and minor correction