move nodegit.js to a template to remove idefs dependency

This addresses issue #302 by templating the output rather than doing it on load as a function