Update plugcubed to latest versions, simplify code