Association scopes

The same functionality as scopes and defaultScope on DAO has been added to associations. 

It's called slightly differently, since i don't think it makes much sense to call something like `associationScope` before getting associations. 

This feature should be very useful for #1307 (polymorphic associations)