Check element_name before use.
Check that hooks is Array instance and filter out empty_stanza before running check_hooks.
Fix potencial problem with empty_stanza.
Replace special stanzas correct hierarchy of js objects.
Tests for jslix.disco module.
Add test for addHook function.
Merge pull request #9 from ComradeDOS/master

Fix some issues and update tests