Redesigned the app client and server

I have leaned on the Bluetooth chat example in order to get the client
and server connecting and processing the data..........