Changed schema definition registration

To be able to work with different structures. Current example elastic search mapping.

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>