For statistics
- added REST endpoint
- JSONP call from client
- REST call from client