Merged r10368 to r10373 from trunk.
Code cleanup (#11814).
Set the first day of week in the date picker according to settings (#11814).
Use javascript_tag.
Moved the javascript includes in html head.
Revision graph sometimes broken (#11612).
Upgraded raphael.js to 2.1.0 (#10419).
Set branch to stable.
Added 2.1-stable branch.
Set version to 2.1.0.