Generate share link asynchronously. Hopefully fixes #280.