Theory and numerics of a thermodynamically consistent framework for geometrically linear gradient plasticity