Gateway: use lib/type.js leaf types.
Update map from MIME to drivers to have direct types.