Implemented device connection dependent of RSSI value (sonnect to cse with strongest RSSI), started to simplify and clean up BLE connection code, fixed bugs with duplicate calls to scan and loadPeripheral.