Daryl Gurney's sensational 135 finish saw Northern Ireland secure the all-important break against Gibraltar.