Expose internal application state through restful API