Move all blog fetching and indexing to its own lib so that we can make other lua programs using it