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.