Refactored setOrientation() for Android.

Appium throws "Set the orientation, but app refused to rotate." when
setting the orientation to landscape on Android, which was fixed by
calling the correc function. Also, made the code simpler by defining
portrait=(0 degree rotation) and landscape=(270 degree rotation)
regardless of current display rotation.