add VersionListener

supersedes https://github.com/FriendsOfSymfony/FOSRestBundle/pull/612