Added possibility to upload a custom WAR file

Added 2 options, one for uploading a custom WAR file. The other
to specify if you want or not to undeploy the war at the end of
the exploit.
The module as is does not allow to deploy a custom WAR file. It is
convenient when ports are blocked to be able to deploy a webshell
instead of just launching a payload.
Refactor: Creation of a JBoss mixin

The jboss_bsheployer as is does not allow to deploy a custom WAR file.
It is convenient when ports are blocked to be able to deploy a webshell
instead of just launching a payload. This will require a auxiliary
module which will use the JBoss mixin methods.
Added auxiliary module jboss_bshdeployer

The module allows to deploy a WAR (a webshell for instance) using the
BSHDeployer.
Also refactored modules/exploits/multi/http/jboss_bshdeployer.rb to
use the new Mixin (lib/msf/http/jboss).
Refactored Jboss mixin

Moved TARGETURI option to the JBoss mixin. The mixin now includes
Msf::Exploit::Remote::HttpClient which provides USERNAME and PASSWORD
Refactored jboss mixin and modules

Moved VERB option to the mixin. Replaced "if datastore['VERBOSE']"
by vprint_status().
Refactored jboss mixin and modules

Moved fail_with() from mixin to modules. Added PACKAGE datastore to
lib/msf/http/jboss/bsh.rb.
Added spec for lib/msf/http/jboss

Also renamed get_undeploy_bsh and get_undeploy_stager to
gen_undeploy_bsh and gen_undeploy_stager to be consistent
with the other functions
Added spec to lib/msf/http/jboss
Fixed a typo introduced in commit  9e92448
add to_hash to Credential

begining of the chain to DRYing up
credential reporting in the loginscanner
Merge branch 'staging/electro-release' into feature/loginscanner-report-dry
use to_h instead of to_hash

apparently ruby 2 adds this as a standard method so
we should stay compliant
add to_h to result
start refactoring ftp loginscanner
make credential_collection always set private_type
finish refactoring ftp_login
refactor afp_login
refactor axislogin
refactor db2
http and mssql now