Removed PEvents

The JSON encoding ignored additional attributes in the PEvent instances
which discarded names, groups, etc.