Expose application internal state through restful API