Merge pull request #23 from ComradeDOS/master

Fix log4javascript loading flow.
don't pollute log with WrongElement hook exceptions
Merge branch 'master' of git://github.com/ComradeDOS/jslix

Conflicts:
	src/dispatcher.js
Merge pull request #28 from ComradeDOS/master

Some minor changes in caps plugin:
1. don't initialize _cached_presence in constructor;
2. don't call getItem twice;
3. transfer to a signal handler object instead of a string.
Merge pull request #29 from ComradeDOS/master

Fix SpecialStanza and update tests for dispatcher module
Merge pull request #30 from ComradeDOS/master

Fixed synchronization problem in caps plugin
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