Adds distant relations to include. ie.:
models.core_team.all({include:[models.core_team.getAssociation(models.core_team_users),models.core_team_users.getAssociation(models.auth_user)],where:{"auth_user.username":"user@domain.com"}})
will return a joined query across two relations:
FROM core_team LEFT OUTER JOIN core_team_users
LEFT OUTER JOIN auth_user

This patch does not validate the associations are in the chain of associations for the queried model, which it should by walking associations in getAssociation.