last page query was returning 50,000+ rows

This should only return one row for the user.
Merge branch 'hotfix/getlastpage' into develop
Merge branch 'hotfix/getlastpage'
Merge branch 'master' of github.com:bnmnetp/runestone
fix embedded quotes in html activecodes
fix background color
More query cleanup for scheduler

Also, make sure the user is registered for a course that has chapters in the chapter table before initiating a group
Merge branch 'master' of github.com:bnmnetp/runestone
enable/disable code coach with login
Make coach button ac_opt class
Detect when there are no chapters for a course

Not sure if a redirect is the right way to handle this.  But probably.
Merge pull request #495 from presnick/master

Master
Better handling of a course not built for progress tracking
Disable codelens automatically if language is not python
Merge branch 'hotfix/bugs_in_31'
Merge pull request #502 from presnick/master

sort order for answers in listasssesments
Some students are not in sections they should be able to save.
protect getCodeDiffs against users not loggedin.
Make sure user is in a group before they manage it
missing a comma between hotkey.js and jquery-migrate