CR feedback - don't use ConfiguraitonManager.AppSettings.
Add Gallery.Brand to the .csdef file also.
Allocate new MarkdownProcess objects instead of sharing across threads.
Comment the security check so it's obvious what its for.