Clean jdwp exploit

This pull request makes some clean up https://github.com/rapid7/metasploit-framework/pull/3407, nothing hard, just a little bit of cleaning, and solving some problems like the use of Rex::Socket::Tcp.