Added subscription API

This api includes a new top-level resource that describes a
user's subscriptions. They are used to inform deferred event workers
on who should receive notifications.

Change-Id: I2ff87410d753a8f87809a39efcefb7eff998b56d