refactored pubsub module to receive the request module as a dependency
refactored tests; added validation for the subscribe method (hardening)
updated version in readme