fi_register_provider: check provider version

If multiple providers register with the same name, keep only the one
with the highest version number.  Use the same format version number
as FI_VERSION.

Fixes #196.