Now specify data source as a command line option.
Added configurability and checking for front-end script.
Added "host" element with data portal hostname to output.