Improved graceful shutdown process. Lots of test fixes and cleanup.
Merge branch '3.0' of github.com:hazelcast/hazelcast into 3.0