remove unnecessary spaces from the code
provide toJSON method for the BaseStanza class to be able to serialize
stanzas without including the __definition__ attr
use object instead of array when signalling of client's capabilities