CRYSTAL: a storage ring for crystalline beams and other applications