Initial attempt at app engine compatability.  Tests currently failing.
Refactor OAuth for better modularity