Fix over-escaping in text-mode rendering in Remarkup

Summary:
Fixes T2684. Currently, we use markup rules to restore text replacements, even in text mode. Instead, just do it normally when operating in text mode.

This fixes double-escaping in some email and, e.g., the Asana stories published by D6521.

Test Plan: Rendered remarkup with `'` characters in text mode with replacements; saw `'` in output instead of HTML entities.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2684

Differential Revision: https://secure.phabricator.com/D6522
Add event dispatch to the Daemon overseer

Summary: Ref T1670. This will replace Conduit.

Test Plan: Ran daemons in `debug` mode, verified events were dispatched.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1670

Differential Revision: https://secure.phabricator.com/D6535
Remove Conduit support from Daemons

Summary: Ref T1670. Daemons now use events.

Test Plan: Ran daemons, saw stable memory usage in overseers.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1670

Differential Revision: https://secure.phabricator.com/D6537
Use standard arguments to implement `--trace` in the overseer

Summary: Ref T3557. Currently, `phd debug` doesn't show events in the overseer, because it handles `--trace` specially. Use standard handling instead.

Test Plan: Ran `phd debug` and saw overseer events (like event dispatch and queries) logged.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3557

Differential Revision: https://secure.phabricator.com/D6540
Reduce daemon restart delay from 60s to 5s

Summary:
Ref T3557. This delay prevents daemons from hammering overloaded services, but limits how quickly they can process a queue full of bad tasks.

This delay is largely obsolete, because we run so much stuff through taskmasters now, which have more powerful builtin retry delays. I think it's still basically good to keep around, but we can be far less aggressive about throttling.

Reduce the delay from 60s (240 tasks / hour with standard config) to 5s (4,800 tasks / hour with standard config). Even if the failures are load related, pretty much any service should be able to handle 4,800 requests per hour -- the problem is that if we remove it entirely, we might send ~150K+ requests / hour (limited only by how quickly the PHP interpreter can restart), which could plausibly overwhelm unprepared services.

Test Plan: Grepped for constant.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3557

Differential Revision: https://secure.phabricator.com/D6542
Send an explicit log message from daemons when they receive a signal

Summary: Ref T3557. Currently, we print a message to stdout with `echo` but don't actually log it. Instead, log it explicitly. This still prints it, but timestamps it, shows signal information, and gets it into the log. Notably, this helps distinguish between standard healthy exits (responding to SIGINT) and less-healthy ones.

Test Plan: {F51255}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, kartikvishwanath

Maniphest Tasks: T3557

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