Bug 909152: Factor out generic logic from OCSP stapling tests to make it reusable, r=keeler, r=cviecco, r=gps

--HG--
extra : rebase_source : 147591c1f12494cdda17e96a4993223297f6dc1a