imap: make limit a variable in gmailSearch()
imap: fix out-of-bounds error in gmailSearch()
httpd: serve some emails on /AllMail.json endpoint