Miscellaneous extensibility improvements and bug fixes

The pull request contains multiple extensibility improvements to allow more control over different SharpDevelop features via addins. In addition few bugs were fixed along the way