fix for #3774
update for fix
new tests added
Merge pull request #3780 from bilalyasar/mbean

fix for #3774
Pulled out HazelcastClientInstance

Fixes #3781

Also improved documentation and minor cleanups
Minor testing improvements
Minor doc typo fix