Improve API for managing tabs and showing "headerFlash" messages. #311