Changed the work directory of the TestMiniCluster test case to live in
a unique directory in target, and not in the /tmp dir

Fixed a bug in waitForHBaseToComeOnline, where the master
may not be fully initialized before this wait returns. This
was causing an issue in tests that were starting and immediately
stopping the master, causing tests to hang on cluster shutdown.