Restful course settings

@cahrens @singingwolfboy please review

I really need to fix course_module's weird manipulation and representation of grading policy. It put me in a sink hole for quite a while (as did the HTTP_ACCEPT not being default on ajax_post), but I'm feeling way behind.