Render resources with relative paths, located elsewhere as http://localhost:9000

I've added an documentBaseURL argument to allow for rendering of resources with a relative path, located elsewhere then http://localhost:9000. Left original method signatures intact.