Add scoping. Remove metaprogramming.

This brings ActiveFedora into parity with a more recent version of
ActiveRecord
Merge pull request #302 from projecthydra/scoping

add scoping. Remove metaprogramming.