new unit tests for Http class
added EXAMPLE_URL constant and failing unit test
added change in MW Http class to return MWHttpRequest instance when a returnInstnace option is passed
used const instead of hardcoded string
fixed PHP notices and formatting
CR changes: updated PHPDoc, simplified condition
Merge pull request #3798 from Wikia/MOB-1704

MOB-1704