Add weight and publish_grade for grading.
Initial effort to access API via xblock instead of js directly.