Support for exporting stats as JSONP.

Fixes #577

Signed-off-by: Michal Čihař <michal@cihar.com>