added symfony 2 eventdispatcher.
moved the metadatafactory construction out of the objectmerger itselfs