Simplifying pregel api and applying to pagerank.
further simplifying API