added domainParameters middleware, an example, and tests
removed debug statement
Merge commit 'b3a4dc14c63c7cf8e9e01e2ae76d3001a79082de' into develop