Added fix for checking tokens for SOURCE repos

There are two things in this pull request

1. improved logging to help debug issues
2. A fix to check_token that url_encodes the repo_name before comparing it to the token, to make sure we are comparing apples to apples.

Please review and let me know if you have any questions.