Man of the match Ian Thornley celebrated a hat-trick of tries to help his Wigan side beat Hull KR 34-20.