Implement scope.defineMethod/relation.defineMethod
Merge pull request #213 from fabien/feature/scope-rel-methods

Implement scope.defineMethod/relation.defineMethod