add messaging api, esri api and http handler code