The start of applescript support, some fixes for input source deallocation when config windows are opened and improvements to the preview view