Fix incompatibility with JQuery UI v1.10. Closes #1668, Closes #1670.

Thanks to @vala and @xhj.
Also use sass-rails master for dummy_app
Merge branch 'master' into rails-4