Add Terminals.waitForChange implementation

Heavily inspired by the OpenJDK sun.security.smartcardio.PCSCTerminals implementation. Probably has a ton of bugs, only tested it with one reader, one card on Mac OS X 10.8.