Fix some issues with code blocks and ASCII art

Summary:
Ref T3558. We currently `trim()` blocks, but should just `rtrim()` them, so we don't lose extra indentation on the first line.

Also, be more liberal about parsing trailing space after triple-backtick.

Test Plan: Unit tests.

Reviewers: btrahan, garoevans

Reviewed By: garoevans

CC: aran

Maniphest Tasks: T3558

Differential Revision: https://secure.phabricator.com/D6481
Fix Asana sync for users with no profile image

Summary: Ref T2852. We don't get a result back here if there's no photo.

Test Plan: Resynch'd an account with no photo.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2852

Differential Revision: https://secure.phabricator.com/D6480