Kilmarnock boost their hopes of Scottish Premiership survival with a vital victory over St Mirren, which eases them four points clear of their relegation rivals.