Added smartWhere object, also treats where clauses as first class citizens for hasMany associations. Closes #757
Added smartWhere as a first class citizen to hasOne.
Cleaned u code and where leakage/pollution should no longer occur.
Merge pull request #765 from durango/association-queries

Added smartWhere object, also treats where clauses as first class citizens for hasMany associations. Closes #757