lua : correct an invisible bug in lua storages.
lua : allow lua storages to only allow some export formats

add a new optional parameter to darktable.register_storage

* supported(self,format) function returning a boolean, if true the
  corresponding format will be supported

  if no function is provided, all formats will be supported