Basic psubscribe/punsubscribe working

psubscribe and punsubscribe work with basic patterns. Further testing of
more complex patterns to come.