Query: moved Stats classes into their own package.

This is in preparation of more stats-like classes being added.