Metafluid dynamics as a gauge field theory