Encrypt the session id before writing to tracking logs.
Also use md5 for constructing key for hmac.
Add additional tests for tracking of sessions.
Merge pull request #3954 from edx/brian/fix_session_id

Encrypt the session id before writing to tracking logs.