Made it possible to replace the method used to generate stanza id's.