Refactor assignment logic into class

We're also decoupling the assigning and sending of issues. We're accomplishing this by adding a "delivered" flag on an assigned issue.