Add Model.static() method
Make _apply also work with hasOne and belongsTo
Sync with upstream
Merge branch 'Morhaus-master' into v1.14
Rename 'static' to 'defineStatic'