Bug fix for LaTeX source not saving

This is an updated version of https://github.com/edx/edx-platform/pull/169/. It includes a change Jonah made to make "css_click" more robust so that I do not have to put in waits.