Put posse-post-discovery into an NDB transaction to avoid race
conditions and duplicate SyndicatedPosts in the DB.

Additional stylistic tweaks to better match the style of the
project.