Rory McIlroy is on course for a first Open title after a second consecutive round of 66 which has given him a four-shot lead going into the weekend.