Move the diff viewer whitespace toggles into the new objects.

Review Request #4293 — Created July 5, 2013 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

Move the diff viewer whitespace toggles into the new objects.

The Show Whitespace Changes and Show Extra Whitespace toggles now live
in the new objects and interact with the DiffReviewableViews to change
the state.

The cookie management now lives in UserSession. Callers just need to set
an attribute and it will update the cookie. This change introduces
jquery.cookie for actually setting and getting cookies, because
JavaScript's native cookie support is terrible.
Tested the toggles manually.

Tested that the cookies were loaded and saved properly.

Unit tests pass.