Add an extent constraint to the device-orientation example

See https://groups.google.com/d/msg/ol3-dev/AHpRs68sCnM/-BNzQkdQJjYJ