Added All Categories and Resources to Populate Links Rake Task - Refactored

Refactored code as well to ensure DRY efficiency and to eliminate id's initially used to link resources to categories. Instead used find_by_title as recommended by Megan, and created resources then linked to the last created instance variable.