Added nicer automation control
Fixed glitchy mouse movement on close
Merge branch 'UI_Automation'
Readded Castle.Core.dll where necessary