Implement the screen.orientation property

This adds the property and it is ensured to be correct after
the first orientation change. Another patch will make sure it is
100% correct in all cases.