Single photon emission and single spin coherence of a nitrogen vacancy center encapsulated in silicon nitride