Prevents appending the same route to routes.php more than once

Added a check in ResourceGenerator to see if routes.php file already contains this resource's route. It's useful if you're re-running your generators.
This code doesn't check if the existing route in routes.php is commented out, because if it is, it's probably so for a reason.