Upgrade to VS2013, refactored global, static stuff to proper classes.
Refactored classes to own files, cleaned up interfaces.