add generic getAll method

I am currently using this to automatically migrate all organizations into a local database for alternative uses.  It could probably be more flexible but I wanted to submit this for review before I bothered making additional changes.