Add an IQ handler for getting preferencies.