Add support for &view=ids to the API

Summary: Basic support + minimal tests

Test Plan: Manual tests + ran the unit tests.

Reviewers: emfree

Reviewed By: emfree

Projects: #sync-engine

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