Modern BMS: From Safety Monitor to Strategic Energy Asset Manager