Implement caching for PullRequest get_issue() and get_comments()
Move check for rebased PRs to a method and use merged attribute

This commit should fix the failing loop break and speed up performance as we
use the PullRequest attribute instead of making API calls for the merge state