api: use flashed messages for api responses with data we couldn't easily get from the json reply - depends on Centarra/panel2#27