posse-post-discovery: reduce number of NDB operations

- do one query for all permalinks on a page, rather than querying
  for each permalink individually
- when refetching blanks, don't delete blanks unless we actually
  find something to replace them with (moved the deletion code
  to SyndicatedPost.get_or_insert... so that it's all part of
  the same transaction now)
(i'm fine with just adding a TODO and doing it after this PR if you want.)