update subdomain library, examples, and package.json
move deps to devdeps