Refactor misc. models

Grouping attribute constraints and updating queries.

Also other minor refactors to help keep Hound away in the future.
Merge pull request #1692 from ferrous26/finders4

Refactor misc. models