Upgrade to Visual Studio 2012
Code reformatting and cleanup
Support Global Resources

Also added a unit test for this scenario.

Fixes #5