rigorous input validation of all API endpoints - issue #72
Merge pull request #76 from mozilla/72-input-validation

rigorous input validation of parameters to API endpoints