Fix rails4 deprecations

Address the following rails4 deprecations on the v1 branch:
- Relation#all is deprecated
- Model.scoped is deprecated