apps/nsq_to_file: add <PID> filename format tag
apps/nsq_to_file: supported rotate by size & interval

ADD:
--rotate-size=0,        rotate the file when it grow bigger than `rotate-size` bytes
--rotate-interval=0,    rotate the file every duration

CHANGE:
1. rename <GZIPREV> to <REV> in filename format for the new featrue
2. `Sync` before `Close`
3. deprecate `maxGzipRevisions`
nsqd: Switch from using win32 ReplaceFile to MoveFileEx calls during atomic_rename

* Ensure temporary diskqueue metadata files are unique
* Use MoveFileEx instead of ReplaceFile to prevent heap corruption issues
Merge pull request #509 from allgeek/atomic-rename-windows-panic

nsqd: Switch from using win32 ReplaceFile to MoveFileEx calls during atomic_rename
Merge pull request #496 from xiaost/tmp-nsq-to-file-20141109-pr

apps/nsq_to_file: supported rotate by size & interval, added <PID> format tag
nsq_to_file: zero pad <REV>
nsqd: change --tls-required to a new tlsRequiredOption type

The new tlsRequiredOption takes "true", "false", and "tcp-https".
"true" and "false" (and variations allowed by ParseBool) allow backwards
compatibility.

The new "tcp-https" option allows users to require tls on only the
https/tcp ports, but to bypass tls on the http port.

Somebody could set up nsqd on a server, expose the tcp/https ports,
lockdown the http port, and allow localhost programs to post to nsqd
without adding support for certs/ssl.
Merge pull request #475 from twmb/no_tls_http_474

nsqd: extend --tls-required to allow non-tls on the http port
go fmt nsq_to_nsq
switch tlsRequiredOption.String to use strconv.FormatInt

This changes nothing output wise, but removes unnecessary code
and makes this method more generic for the future.
Add tls-min-version option

This adds a new tls-min-version flag that enables nsqd users
to specify a min tls version acceptable. The arguments to this
flag, <v>, follow the format of Version<v> in the tls package.

This commit adds --tls-min-version=ssl30 to the test.sh flags.
Merge pull request #513 from twmb/tls_min_version_512

nsqd: add --tls-min-version config option
travis: run tests on 1.3.3 and 1.4
nsqadmin: make importable
nsqadmin: close notification response
nsqd/nsqlookupd: add/use RealTCPAddr/RealHTTPAddr
nsqd: print string when theres an error parsing lookupd response
nsqadmin: add RealHTTPAddr
nsqadmin: add /topics route
nsqadmin: add ?invalid=true query param to /topics endpoint