add json API to get the analytic data

pattern:drainet-dev.appspot.com/analyticdata?Entity=_____