add pubsub command, fix empty list reply..
Added very basic tests for the PUBSUB command..
remove trailing whitespace..