Work around OSX after Yosemite no longer respecting CURLOPT_CAINFO

Summary: Fixes T5913. See discussion in that task.

Test Plan: Will make affected users in T5913 test.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: ide, epriestley

Maniphest Tasks: T5913

Differential Revision: https://secure.phabricator.com/D10315
Make sure TempFiles are destroyed after a PHP fatal error

Summary: Fixes T4284. Object destructors are not called after a fatal, but shutdown functions are.

Test Plan:
  - Created a test script which makes a temp file, then fatals.
  - Before patch, temp file was left around.
  - After patch, it is cleaned up.
  - Explicitly destroyed the tempfile in the script to verify that double-destruction is fine.
  - Removed fatal to verify that normal behavior works as expected.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4284

Differential Revision: https://secure.phabricator.com/D10329
Daemons - add phd-daemon support for findRunningDaemons

Summary: Ref T2374.

Test Plan: D10354 now works...!

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T2374

Differential Revision: https://secure.phabricator.com/D10357
phutil_utf8_shorten => PhutilUTF8StringTruncator

Summary: Fixes T3307. Clean up the remaining instances and delete the actual function

Test Plan: arc lintypoo

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T3307

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