API integration: contract / ngResource added / minor changes