Firefox: Support Native Messaging

The problem is similar to bug #1741074 in the chromium snap.

I haven’t tested with the firefox snap yet, but I have managed to make a simple native host connector run with the chromium snap (see bug report), so I will try to replicate this with firefox.