Advanced URL parsing designed to handle complex URL schemes with a block-based callback API