Add .gitignore

In an attempt to save us from git garbage hell…
Clean up code & mild refactoring

Removes redundant/unused code, gets rid of some magic numbers, removes
“using namespace” (Danger Will Robinson), and normalizes console
logging.
Remove pre-gitignore residue

Removes .DS_Store and *.xccheckout files, which are not needed by the
repo.