St Margaret House in Edinburgh, home to more than 200 workshops used by painters, charities, theatres and craftsmen, may be turned into student flats after the building was sold to developers.