[gmail/auth] Only set the refresh_token if we get one.

Summary: We had an issue where a re-auth'd account would clear out an existing refresh token.

Test Plan: Read the code.

Reviewers: emfree

Reviewed By: emfree

Differential Revision: https://review.inboxapp.com/D323

Conflicts:
	inbox/auth/gmail.py
[proivder_resolution] Fix provider resolution code and add tests.

Summary:
Provider resolution logic was broken, fix it, add tests, fix providers.py which had some errors in it (found in testing). Yay testing.
Fixes T297

Test Plan: Run unit tests that now test provider resolution.

Reviewers: emfree

Reviewed By: emfree

Maniphest Tasks: T297

Differential Revision: https://review.inboxapp.com/D331

Conflicts:
	inbox/providers.py
Set pool_recycle to deal with MySQL closing idle connections.

See http://docs.sqlalchemy.org/en/latest/dialects/mysql.html#connection-timeouts

Cherry-picking this onto master so it definitely gets deployed.
Fix merge error in providers.py
Handle HTMLParseError when stripping tags.

Also remove unused code from inbox/util/html.py.