Bug 840147 - [System] fix orientation problem on open/close app animation

This patch aims for:
* when user presses home to go from app back to homescreen, the app keeps its original orientation.
* when user opens/returns to an app with its direction locked, the app opens directly in its orientation.

These are implemented by css rotation to make app orientates different from homescreen possible.