add CollectionPath(using wildcard %c) support for subfolder format.
fix a bug of calling getFilename on url link attachment.
adapt code to integrate with the existing wildcards system.
Merge pull request #145 from simpzan/master

add CollectionPath(using wildcard %c) support for subfolder format.