add support for format related configuration options to the RestYamlColl...

...ectionLoader

This pull request aims to fix #626. It also adds a fix to support the deprecated ``pattern`` option.

If you guys are fine with this pull request, I'll extend this with a similar fix for the ``RestXmlCollectionLoader`` class.