codegen: Remove the hardcoded root URL

This is required in order to run the generator using a server that has
been configured to use an URL different to the default.

Change-Id: I77a63f8d3ad4d5fa759703be0857fac8e9b50da2
Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>