[bug 766394] Reorganized share_link generation.

We now spawn up workers to take care of mass generating
share_links in chunked bits, similarly to rebuiding kb articles.
Our query for valid docs to generate share links for is now much
more efficient and should only grab articles that need the links.