Adding step to simulate a change in device orientation.
Adds in capability to wait and ensure that orientation change actually took place.
Changes parameter "newOrientation" parameter of setOrientation:animated: to explicitly only take ints of type UIDeviceOrientation.
Merge pull request #2 from sstigler/master

Merging in per fixes from last pull request being added.