Added query constraints (filters)

Added query constraints.
Moved some of the request logic to separate module.
Updated documentation.
Still plenty of green dots.