Added support for http resources and UnitTests.