jagtalon.go: Better handling of URL paths.

Using the log package to log everything and added extra checking in the URL.