Bluetooth socket operations

This adds methods for reading and writing data from/to a socket, and support for closing and being notified that a socket has been closed.