Add Signature class and related stuff

Added capabilities for signing request with PLAINTEXT and HMAC-SHA1 signatures.