Vast quantities of medicines and renewable fuels could be produced by algae using a new gene-editing technique, a study suggests.