SCSM Add-on - Advanced History Groomer [w/ Source Code]
Personally I think Cireson could benefit by looking at the source code provided. Since we heavily rely on Cireson, we also heavily depend on their success. Notably, there is code for retrieving SCSM Run As Account credentials for Impersonation.
As for other SCSM 2012 R2 Developers, if you are interested in creating your own C# Workflows using Visual Studio Community, this working example will be of great interest.