Refactored :all methods so the logic for queries and the id resolution is not scattered
Merge pull request #141 from fluke777/all

Refactored :all methods so the logic for queries and the id resolution i...