Merge ESS changes to julia-mode.el with backwards compatibility.

This is just commit 2bfcc92a5499a736d5a434ab9616bdf32a8d5950
with a few compatability fixes.
Merge pull request #4200 from porterjamesj/julia-mode-fix

Merge ESS changes to julia-mode.el with backwards compatibility.