Allow DB-specific scopes & filters by delaying until HTTP req

TODO:
+ add tests
+ move the code into a module to `include` into ResourceDSL
+ this is broken because it will add scopes and filters multiple times,
  once per HTTP request