New ways to get metadata from file

This is to fix https://github.com/ralsina/nikola/issues/236.

In addition one can specify a regexp that will be used to extract metadata from the filename in a way `Pelican` does it.