Added optional dictionary for metadata to actions.

So, you can have a function

def foo(key, value, format, **meta):

and access the metadata using meta['title'] etc.
Note that the metadata won't be a string, but a python representation
of a MetaValue.