Disallow "*/maskbits" as an address pattern.

Fixes bug 7484. We've had this bug back in a8eaa79e031ee04d44 in
0.0.2pre14, when we first started allowing address masks.
Expose parse_client_transport_line() and parse_server_transport_line() for the test suite
Add some mocks needed to unit test ClientTransportPlugin/ServerTransportPlugin config line parsing
Add unit test for ClientTransportPlugin/ServerTransportPlugin config line parsing
Replace all calls to parse_client_transport_line() or parse_server_transport_line() with new parse_transport_line() stub
Merge and refactor redundant parse_client_transport_line() and parse_server_transport_line() functions
Add `published` line to `@type bridge-network-status` documents.

This modifies the format of the bridge networkstatus documents produced
by the BridgeAuth. The new format adds a `published` line to the header
of the file, before the `flag-thresholds` line. This is done once per
networkstatus file that is written. The timestamp in the `published`
line is the standard ISO 8601 format (with a space as the separator)
used throughout the rest of tor.

 * FIXES #12951 https://bugs.torproject.org/12951
Drop check for NTE_BAD_KEYSET error

Any error when acquiring the CryptoAPI context should get treated as
bad.  Also, this one can't happen for the arguments we're giving.
Fixes bug 10816; bugfix on 0.0.2pre26.
Ticket #11291: patch from "anon":

test-11291-group-redable-hsdirs-wtests-may8.patch
Clean up patch

Here I clean up anon's patch with a few of nickm's suggestions from comment 12:
https://trac.torproject.org/projects/tor/ticket/11291#comment:12

I did not yet completely implement all his suggestions.
Correct check_private_dir's dir mode

This commit attempts to satisfy nickm's comment on check_private_dir() permissions:
https://trac.torproject.org/projects/tor/ticket/11291#comment:12
"""check_private_dir() ensures that the directory has bits 0700 if CPD_CHECK_MODE_ONLY is not set. Shouldn't it also ensure that the directory has bits 0050 if CPD_CHECK_MODE_ONLY is not set, and CPD_GROUP_READ is set?"""
fix two typos
Make HiddenServiceDirGroupReadable per-hidden-service
Fix white space
Add Window compatibility note to docs

HiddenServiceDirGroupReadable has no effect in Windows
Fix regression nickm pointed out
Remove HiddenServiceDirGroupReadable from or_options_t

...and also fix whitespace.
Treat Z_BUF_ERROR as TOR_ZLIB_BUF_FULL when finalizing a zlib buffer

Otherwise, when we're out of input *and* finalizing, we might report
TOR_ZLIB_OK erroneously and not finalize the buffer.

(I don't believe this can happen in practice, with our code today:
write_to_buf_zlib ensures that we are never trying to write into a
completely empty buffer, and zlib says "Z_OK" if you give it even
one byte to write into.)

Fixes bug 11824; bugfix on 0.1.1.23 (06e09cdd47eaa8f7e90ce2).
Fix permissions logic
Refactor pending_cb_message_t into a type with proper functions

Also, rename it.