Tenant id is now extracted from headers;
eq function added to api Resource class

Change-Id: Ia28260a794c2e30fdcd57941421ea2cbbfc8f216