Code cleanup.

Isolated the oauth settings, cleaned up the app instance, went through
and removed a lot of old comments, try/catches, etc.