fix(isHostname): check for lengths

Check for DNS label and total hostname length in isHostname().
Merge pull request #35 from racker/enforceHostnamesMaxLength

fix(isHostname): check for lengths