Refactored the FolderUploader.consider() method into utils.match_pattern().

Added more tests to increase coverage of cf_wrapper.client.