Added function to handle cookies in HTTP requests.
Improved logIn sid cookie test using regex.

Log In cookie test now expects a cookie string with the exact format:
'sid=[a-zA-Z0-9]{32}'
Test data generation/clean-up also improved.