Parse URLs in C much like Node's url module.