Fixed indentation.
Made the SQL functions more readable while trying to remember how
everything works. I'm still not sure how to handle the syncing.
Leaguevine API changed slightly.
token->access_token
The redirect URL is constructed differently.

Also undid the changes the SQL statements. Turns out the nice string
replacement requires an external library.
indent
EOLs... ugh.
more EOLs
fix conflicts