DOCTYPE error processing

Very early beginnings of error processing. Will detect if DOCTYPE is
not set in your first tag. It's still far from perfect as you can
easily declare it wrong without receiving an error.