Adding smart_add_url_protocol method to url model.