Add QuerySerializer.
Add a few test thats still need to implemented.