add data platform APIs

domain API: http://manage.dimagi.com/default.asp?145862
web user api: http://manage.dimagi.com/default.asp?145587
@esoergel this was the most pleasant experience i've had with ES in a long time - thanks for making the nice query APIs!