The central engine of GRB 130831A and the energy breakdown of a relativistic explosion