Unit tests + refactor of js to be more testable

+ working extension for mediawiki
Complete refactor of config.js

Done to enable creating html lists of tags on the basis of the js object
holding the dictionary of tags, also adding constructor for configObj,
holding all the major nodes.