Gem code!

Extracted the PopularStream code from We Heart It and bundled it up in a gem.