device: added basics of plugbox

Not quite working yet though