Port of FOSElasticaBundle (https://github.com/FriendsOfSymfony/FOSElasticaBundle), removing dependency on SymfonyFrameworkBundle (DIC & Configuration) while trying to maintain parity with upstream.