Factor out "embed_relations" config directive
Factor out queryEmbedRelationsCustom
Factor out querySort function
initialize variables at the correct spot
initialize $embed_relations_custom at the right spot
Factor out FilterPrimaryKeys
Factor out Filters
Factor out querySelect
Move query function to base class
don't push strict standards for legacy functions
Merge pull request #13 from Recras/refactor-query-for-inheritance

Refactor query for inheritance