Modified the way error and url_to_shorten is passed

Also updated the shortened_url method, as we don't really need to see the port.