ADD: Initial BLE handlers and some refactoring