Add new _postAndPromiseWithAbstraction() to repo API

Introduces a helper function, easily allowing to extend a jQuery.Promise returned by an API
function with different callback parameters in case of success.

Change-Id: Idd7a9789ddbd1e3d25285197da95e4b850344787
Merge "Add new _postAndPromiseWithAbstraction() to repo API"