UK court jails man for trolling online tribute pages