Removes assumption that the db with serverId:1 is the master. This
assumption was likely causing random test failures.
More readable code and error messages.

Also increased timeout for awaiting a sub-process to start as well as
removing the time for starting the sub-process itself from the waiting.