Add support for mongoid max_scan option

respect the max_scan option in criteria

cache the total_count in the collection instance
prevent hitting db again in the same instance
Merge pull request #500 from aptx4869/support-mongoid-max-scan

Add support for mongoid max_scan option