Merge "Set StateManager to BackgroundAppState if end gesture is NEW_TASK" into tm-qpr-dev