Implement istanbul for code coverage

Implement istanbul based on prototype in PR #82 by @gotwarlost and followup recommendations made by @kof. Please let me know your feedback.