The structure and evolution of quasi-stars