Added the internals for the ConnectionService

Added the methods for the interface ConnectionService and made minor
changes to the bluetoothservice