Whitespace cleanup
Make behavior of query.count more explicit.
Use ActiveSupport Concerns, remove unnecessary requires.
Move base class methods into ClassMethods module, use concerns.
Remove misleading Base.belongs_to.
Support association-based finders.