Set landscape orientation prop

Set sys.orientation.landscape to 1 when in landscape and to 0 when
in portrait orientation for devices that have rotating capacitive
buttons.

forward ported and adapted from ics, author unknown.