Backend logic for the course modes paid/free/manual.
Goes in hand with the theme commit a52b3c0656d68a05d7cc616c0d1259affe65ab8c
Merge branch 'edunext_master' into feature/fmo/course_modes
Merge branch 'feature/fmo/course_modes' into edunext/release