Only count the first click of the "hint" button as an attempt, and don't make unnecessary /api/v1 requests from khan-exercise.js

Additional tweaks to follow up on #580.