Fix memory leak on proxy disable and some code cleanups.
Fix memory leak on proxy disable and some code cleanups.

silent-snowman/bluez,pkarasev3/bluez,ComputeCycles/bluez,mapfau/bluez,silent-snowman/bluez,ComputeCycles/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,pkarasev3/bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,ComputeCycles/bluez,pkarasev3/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez