Converted some components in Sense.Device to a Sense.Core library that will be shared between the device and the server.