Changed query and command generic types to be restricted to classes instead of a specific type
Moved query and command classes to Services namespace