Query classes for API methods make-rebill and sale extracted from Workfflows and covered by tests.
Some refactoring of other Queries.
Created factory for Queries.
Refactored Workflows.