Integrate with istanbul for code coverge. Inspired by #340.