Use END_CIRC_REASON_TORPROTOCOL instead of magic number.
when somebody uploads too much, say who tried it
Fix 13941: make calling log_new_relay_greeting() optional.

Specifically, only if we're creating secret_id_key do we log the
greeting (and then only if the key is actually created).
Pre-check hidden-service-dir permissions/ownership

See ticket #13942 where Tor dies if you feed it a hidden service
directory with the wrong owner via SETCONF.
Tweak 13942 fix
Merge remote-tracking branch 'meejah/ticket-13941-b'
Reference bug number in changes file
fix a long line