Connor Goldson's injury-time winner gave Rangers an opening-day win as they beat Kilmarnock 2-1 at Rugby Park.