Don't call Message.calculate_sanitized_body() if decode_error = True.
s/Block/Part/
Raise slow query threshold, and don't log full stacktrace.

This was generating a huge amount of log spam, much of it likely just from
scheduling contention. We also don't need the full stack trace to figure out
where the call comes from, given that we now log module line and number.
[SCHEMA] Add index on eas_thrid.

For great performance.
Fix logging call to find app frame and name on odd tracebacks.

Some frames don't have a '__name__' attribute in their f_globals, which breaks
structlog's utility for finding the first application frame when you specify
additional modules to ignore. Fix this.

(todo: submit a PR to structlog for this)
Serialize crispin connection creation to prevent database connection spike.
Update API sync protocol terminology to "delta protocol."
[monocle] angularize monocle.

Summary: move monocle to be an angular application.

Test Plan: run monocle with a bunch of accounts and make sure everything displays properly.

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: kav-ya

Differential Revision: https://review.inboxapp.com/D300
[monocle] Show the time_ago for the sync end time.
[monocle] Don't show progress bar if percentage isn't given.
Fix Monocle pretty-date timezoning.
[monocle/filter] Add monocle filtering.
Update bin/clear-db to keep new genericaccount table.
Add logging around db session creation and teardown.

We won't keep this in permanently, but we REALLY want to know exactly how the
connection pool is getting exhausted.
Actually cache blob values in memory.

Previously, by property/setter magic, doing `part.data = value` in message
parsing would write to the data to S3. Then accessing `part.data` in
`message.body` would read it right back. Not ideal.

It seems the original intent was to actually parallelize persisting to disk,
but that code has bitrotted. This is an interim patch, but we should definitely
take another look.
flanker depends on g++
[monocle] Remove link on account id since clicking the row works.
[monocle] Fix error filter.
[monocle/actions] Change actions to be async.
[Sentry] Add git revision to traces + Keep some stack locals

Summary:
Christine, Eben,

I fixed T254 and also created a custom sentry processor to keep the last n locals from the stack trace.

Test Plan: No test plan - can't reach gunks :(

Reviewers: spang, emfree

Reviewed By: emfree

Maniphest Tasks: T254

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