Bug 1073806 - In Gaia, bypass system-resize in LayoutManager in window resize event if Keyboard is showing and we've just changed orientation

cherry-pick from master's patch:

Conflicts:
	apps/system/js/layout_manager.js
	apps/system/test/unit/layout_manager_test.js