Bug 840147 & Bug 877903 : fix orientation problem on open/close app animation.
                          * Open app by real device orientation
                          * Refactor setAppSize and rotateTransition to AppWindow
Merge pull request #10387 from rexboy7/fix-bug840147-bug877903-v1train

Bug 840147 & Bug 877903 : fix orientation problem on open/close app animation.