Merge pull request #332 from jingweno/master

Add link to jq playground
Add autoconf checks for pthreads; fix #340
Make pthread tls configurable for Mingw build

For the Mingw build we don't want to pull in the pthread DLL just
because we can autodetect pthread support.  That would make the jq.exe
binary not self-contained.
Added unique_by function
Added texts/examples to unique_by function
Merge pull request #360 from slapresta/275-unique-by

unique_by(.foo) function
Documented `del` command
Merge pull request #367 from slapresta/del-docs

Documented `del` command
Update .gitignore and config/.gitignore
Fix tests failures on Windows

And Solaris 8 and 9 too, no doubt.  The problem was that non-standard
vsnprintf()s that return -1 when the buffer is too small were not
properly supported.
Revert "Add -I / --online-input for huge top-level arrays"

This reverts commit 77936a594d797c480f26bfcef3636a74588a6918.

There are too many odd bugs in this mode, and it turns out to be a bad
idea anyways.  Instead, in the future a better option will be to pursue
alternative parsers, such as:

 - streaming parser that outputs only when a new leaf value is added or
   an array/object is opened/closed; options here include whether to
   include a path in each output;

 - parsers for binary JSON encodings (there's a variety of them).

Then one might run jq with a streaming parser and use `reduce` to
coalesce inputs from some depth down (instead of from one level down as
the reverted commit had intended).

Besides, a fully streaming parser is desirable in some cases, therefore
we should have such a thing as an option.

I've explored modifying the current parser to support a streaming
option, but it only makes the code very difficult to follow, which is
one reason that alternate parsers makes sense.  At any rate, this is all
for the future.  For now there's no streaming of individual texts, just
text sequences.
Add flags argument to jv_parser_new()

For extensibility.  We might add streaming parser options, even binary
JSON encoding options.
Add -j option to scripts/crosscompile
Add cross-compilation notes to README

A detailed set of instruction as to how to setup a cross-compilation
environment for OS X and Win32/64 would be nice.
String * number should be commutative
Added `join` function

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
Document `index` and `rindex` (#389)
Remove reference to `getpath` from docs
Improve `index` and `rindex` examples
Add `indices(s)`, improve `index(s)`, `rindex(s)`

Now these deal with arrays as input and `s` being an array or a scalar.