Get the complex-key query as part of the entity definition.
fixed the expression of the views from unordered objects to an array.
Have sync move complex-key queries to design document.
Integration tests for complex-key query, the final step that resolves #18