core: Provide functions for different byte orders

Rationale: see #1586.
tests: Add unittests for byteorder.h
tests: fix bad copy+paste in tests-core.h
c++: core: add extern C in header files
sixlowpan: fix ipv6_addr_init_prefix
Merge pull request #1781 from authmillenon/sixlowpan-fix-prefix-init

sixlowpan: fix ipv6_addr_init_prefix
Merge pull request #1783 from dangnhat/extern_C_in_headers_core

c++: core: add extern C in header files
Merge pull request #1699 from Kijewski/issue-1586

core: Provide functions for different byte orders
at86rf231: replace vtimer_usleep by hwtimer_wait

This fixes a bug where the callback to unlock the thread, put to sleep by
`vtimer_usleep` wouldn't be woken up due to overhead. Using hwtimer_wait
works for now, but this section will be replaced a driver refactor anyway.
cpu/stm32f1:board/iot-lab_M3: fix and cleanup for GPIO low level driver
cpu/stm32f1: overwrite HWTIMER_WAIT_OVERHEAD