Promises

Conflicts:
	test/HttpGetEndpoint.js

Change-Id: Ie8a42016f973759665680350040bf84d9a77c18d