sync BLE_API, nRF51822 and mbed-src
fix compile errors
change file structrue and add more demos