Bug 991442 - Add coverage threshold to test-agent

https://bugzilla.mozilla.org/show_bug.cgi?id=991442
In the aspect of build system, we should reduce the Makefile implementation and move our logic to Javascript (both xpcshell and node.js)