Add a validate_uri function

Currently there is no way in puppet to verify that a value is a
proper URI string. Consequently values that are assumed to be URIs
are passed on to applications that are expecting URIs, causing
unexpected or undesired behavior. This patch provides a puppet
function that can be called to verify that it's argument is a
proper URI string.