Moved the crowdsourced hinter module into mako template form.

Fixed some bugs in the tests for crowdsourced hinter.