Fix AR depreciation warnings for Rails4
Use batch to do cleanup instead of loading everything at once
Fix gemspec to allow rails4