First version of the orderquery framework.
Its not fully tested jet so don't use this version in a productive environment.