Changed P2P session property to MediaMode

The tests and the samples apps have also been adapted with the
corresponding changes