Added an IsPageEditorEditing check to the pipeline to not try to detect the device is we are in PageEditor mode. Under certain circumstances (device detected as mobile and no mobile layout for this page) the Page Editor would cause a client side redirect loop.
Merge branch 'page-editor-friendly'