More flexible previewTemplate (optional fields)

Let previewTemplate have zero or more
elements that represent data - filename, size, etc.
This will in effect make all fields optional.
Merge pull request #342 from eirslett/develop

More flexible previewTemplate (optional fields)