Sage lays off 40%, shakes up C-suite to squeeze a profit out of ... ...