Adding Value to Value-Added: Theory and Applications to Teachers and Bureaucrats