Linfield edge a resilient Crusaders 2-1 and move 19 points clear at the top of the Irish Premiership thanks to goals from Joel Cooper and Chris McKee.