Updated all the yaml loaders to get the file contents first.

This is to fix a potential security issue with the Yaml loader. Ability to load the file like we were will be removed soon anyway, so may as well change now.

http://symfony.com/blog/security-release-symfony-2-0-22-and-2-1-7-released