add hmac/rc4 codec
integrate hmac private key parameter into client
refactor element directory
add support for HMAC authentication and RC4 encryption