Add tests for Connection#data
Clean up Connection and Device classes
Improve Device specs