Update to support compound

Hi

Please comment if this is a correct way to do it:

+    compound.on('models', function(){
+        for(var m in compound.models){
+            if(compound.models.hasOwnProperty(m)){
+                compound.models[m].paginate = paginateCollection;
+            }
+        }
+
+    });