Resource model with DB API

This patch involve necessary stuff for resource tracking in server
providers. There are Resource model and object with corresponding DB
API.

blueprint db-resource-track

Change-Id: I349bd8dba8f930edfed299a928e6bfc62f21dd17