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.

Change-Id: Iada991dec32417e69e331157e52bb77b24cd5662