rails4 compatibility

- Relax the gemspec dependency to allow use of this gem with activerecord 4+
- Use lambdas for scopes since rails4 requires scopes to respond to :call