Use full URLs instead of hostnames; More code cleaning.