Added support for composite keys

This adds support for composite keys.

The composite key is defined by adding to the meta section on the collection.