Added beginnings of framework for settings providers.

Refactored codebase to conform to Microsoft's best practices.