DOCTYPEs

Added support for DOCTYPE declaration (writeDocType) as well as unit test: doctype.js

I'm probably missing some legal characters in the regex tests for pubid, sysid & subset values.  I put them together based on examples I found on the web.