Preview orientation

Added previewOrientation and autoUpdatePreviewOrientation properties.
Tabs to spaces

Replaced tabs with 4 spaces
Tabs to spaces

Replaced tabs with 4 spaces
Fixed auto updating of previewOrientation
Tabs to spaces

Replaced tabs with 4 spaces (again… sigh)
Merge pull request #157 from wvteijlingen/preview-orientation

Preview orientation