Bug 1008854: Move NFC NDEF helpers to shared test code, r=dlee

There are helper functions for parsing and comparing NDEF messages
in test_nfc_peer_sendndef.js. This patch moves these functions to
the shared code for NFC Marionette tests to make them available for
other tests as well.