Shirley-Anne Somerville has been appointed Social Justice and Housing Secretary in the Scottish Government.