Query for posts via url before we wp_remote_get

Big performance boost.

See: https://github.com/GigaOM/legacy-pro/issues/4602

This replaces: https://github.com/GigaOM/go-content-stats/pull/43
Oh, this global is no longer needed here now that the SQL moved to its own function.