Aws improvements implementation.

Makes java client aws aware.
fixes #2587
fixes  #1777
see https://hazelcast.atlassian.net/wiki/display/EN/Java+Client+Aws+Improvement