add edit challenges..

I have added a new property course to the Challenge model..
that enables me to get the course_code without referring anywhere thorugh the exercise object..
Please review..for if this is an okay approach..
The other pull request..course_dropdown..has similar issue..that we dont have an exercise for everychallenge..
so this approach fixes that too..
I will need to update this property for its value for every challenge though..