allow persistence.factory in options to be string

To fix https://github.com/mcollina/mosca/issues/126

Should we allow `factory` to be either Function or String? or have a new option field `type` in `persistence`?