Improved demo script
Starting the refactor by domain (kind of) #34
Added reference to #14
Added pr-d and sw-d to supported domains (need to add them in
onto now)
Big refactor, improved support for specialized elements as properties, improved modularization
Added keyname for keydef, non-href topicrefs are now passed through