Adding subsription model and DB API

Model classes and a migration added for subscriptions handling. This
will be used later to build user feed.

Change-Id: I9012d3bc8b6c20d884100b23d431cdfd80457c1e