enitity metadata, revision metadata, revision finding

Meta WIP. Now you can attach meta data to revision and entities and query revisions by metadata (array or raw query). Can someone check if it runs fine in symfony context?

Closes #37