Bug 840147 & Bug 877903 : fix orientation problem on open/close app animation.
                          * Open app by real device orientation
                          * Refactor setAppSize and rotateTransition to AppWindow