CDAP-398 Add exists() and waitForX() to cdap-client classes

https://issues.cask.co/browse/CDAP-398
You shouldn't ignore InterruptedException. The InterruptedException should be thrown (hence the method signature needs to carry that). That's the Java way for all blocking methods.