Bug 8: Expose scheme, hostname, port and path.

Fixed #8.