Fix the background job of sending email after a user subscribes to a repo

- Inside resque_def, we have to use repo_sub instead of self to refer
  to repo_subscription
- In adding_repos_test, user must sign in otherwise user_id for
  repo_subscription is nil