cpu/nrf51822: fixed gpio driver

the gpio driver was broken -> the pin direction set by `NRF_GPIO->DIRSET` and `NRF_GPIO->DIRCLR` was overwritten by `NRF_GPIO->PIN_CNF[pin]` right away again, so output did not work. This should fix this and also the code is a little more compact.