Updates from ShareLaTeX
Merge sharelatex-2014-10-23-1637 into master