Added the ability to specify the doctype when creating a page (instead of using the default).