Merge "Allow UiAutomation being used off the main thread" into pi-dev