Added Mac OS X .DS_Store files to .gitignore
Added the Preferences class with support for the source section.