Removed some commented-out code. No functional changes.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13695 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Replaced the internal ThreadPluginLoading class with simply passing a Runnable
to a standard Thread object. No functional changes.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13696 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Moved all of the logic in the windowOpened event handler into a new function,
initializationSequence(). No functional changes.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13697 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Removed the onStagePositionChangedRelative and onXYStagePositionChangedRelative
functions, which were not invoked from anywhere anyway. This bumps the
Core version number to 4.0.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13698 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Split out the CoreEventCallback class from MMStudioMainFrame, and refactored
how we handle some of the callback logic.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13699 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Remove startAcquisition() method, which was marked deprecated in December 2013
and is no longer exposed in ScriptInterface in any case.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13700 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Changed a couple of custom classes into anonymous Runnable implementations.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13701 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Fix Core 'current device' management.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13702 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Do not spuriously alter image-synchro list.

(Looks like the current shutter used to be added to image synchro
automatically, and unconditionally removed when no longer the current
shutter.)

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13703 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Retire sprintf-based logging in CMMCore.

Includes some minor changes to exception handling (avoid unnecessarily
suppressing unexpected exceptions).

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13704 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Rename; eliminate unnecessary private accessor.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13705 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd