Scopes on associations

Punch a hole in the association_proxy for scopes. Also inject the parents id if needed.