Added paremeter user to MockHttpRequest. Added tests for http module.

Patch for issue #11