Analysis: Various CA fixes and code cleanup

Analysis warning fixes for:

- [CA1001](http://msdn.microsoft.com/en-us/library/ms182172.aspx)
- [CA2000](http://msdn.microsoft.com/en-us/library/ms182289.aspx)
- [CA2104](http://msdn.microsoft.com/en-us/library/ms182302.aspx)
- [CA2204](http://msdn.microsoft.com/en-us/library/bb264488.aspx)
- [CA2208](http://msdn.microsoft.com/en-us/library/ms182347.aspx)
- [CA2227](http://msdn.microsoft.com/en-us/library/ms182327.aspx)