Bug 976846 - Update active app earlier

Conflicts:
	apps/system/js/app_window_manager.js
	apps/system/test/unit/app_window_manager_test.js