Completed device controller. Factored socket subscription out to seperate controller.