Merge pull request #7 from stenington/validate-by-url

Let validator handle url arguments too
Adds validateHosted, validateHostedUrl, and validateSigned to validate specific types
invert some if conditions to match code style better