Write coverage statistics to json file

http://www.youtube.com/watch?v=kxRX6LXDpWs