Extract superclass for pubsub processor, add actor spoofing checks

Fixes #274