[DEPENDENCIES] Better validate API query parameters.

Summary:
Use flask-restful's parameter-parsing facility to return meaningful errors when
unexpected or malformed parameters are passed in API requests.

Test Plan: Unit tests.

Reviewers: charles

Reviewed By: charles

Differential Revision: https://review.inboxapp.com/D288