Fix single instance management

There was a race condition in ApplicationInstanceManager. Now we use Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase to do instance management properly.
Merge pull request #227 from michalx2/master

Fix single instance management