Slice URLs into logical parts - domain, tld or subdomains for node.js