Refactor of WindowManagerService to move app transitions out. Change-Id: Id3e377526a69f95a3ee4c0d97ca6fd84005beb6a