In London the hybrid building designed by Henley Halebrown combines a new primary school with an affordable housing complex