(imported from commit cd98a86a5e07765f753ac1904e45ccd1213d6d67)
(imported from commit 8127c04ccc68a9ac106e5684a7ea9a621cb1831f)
This covers most of the module's functionality, with special emphasis on lines that use underscore.js (_.each and _.filter). (imported from commit 074181a0273286a258504be634bdd1cead2eecd5)
(imported from commit 5bf9b690dfd3ac83296a58cf44a170960adaed39)