Added headers support for resource loading

Headers support for loading resources.
Header parameter added to ResourceSpecs.