Allow session cookie name to be customized

This was manually cherry-picked out out edx:master.