add nrf51822 target and hex file support

Add functions to convert HEX data to binary data.

![hex2bin](https://cloud.githubusercontent.com/assets/948283/3089477/41f3e14e-e57f-11e3-9ced-613345afdc45.png)