Assignment logic refactor

Moved assignment logic into assignment.rb model and refactored self.find_submission_and_status and self.create_submission_data