refactor(client): check for invalid params and throw more useful errors
Merge pull request #110 from mozilla/issue-109-check-params

refactor(client): check for invalid params and throw more useful errors