Bug 840147 & Bug 877903 : fix orientation problem on open/close app animation.
                          * Open app by real device orientation
                          * Refactor setAppSize and rotateTransition to AppWindow
maintain the correct app size with keyboard when the attention screen is hidden.

Conflicts:
	apps/system/js/keyboard_manager.js
	apps/system/js/window_manager.js