Misc changes and minor fixes in DTD

- Rename "pkgs" into "packages"
- Rename "demon" into "daemon"
- Remove "link" attribute from "device" element
- Remove trailing whitespaces
- Remove "test" element, which is not ready yet