Yeah all of this was just copied from edxapp, I'll fix it up here since it looks like we are removing it from edxapp as well.