Hg 69 use one api

There is still some cleanup to do
but maybe you can already spot something that I did that needs to be fixed
@kenkouot @benmai 
I agree with Ben on this and actually, ApplicationModel seems like a logical place to put this for now.