Limit number of threads and messages that can be requested.

Remove support and documentation for 'set limit=0 for no limit' behavior. This
will just break things if you try to request *all* messages in a mailbox. For
now, don't allow limit arguments greate than 1000.