Use runtime value of require() in relation. Helps compatibility with browserify
Use truly global require(), allow passing model class directly in
Merge pull request #533 from navitmccaffery/require_scope

Use runtime value of require() in relations