Reduce the query count by one per page when using SiteConfiguration.

SiteConfiguration always looked up self.site to build the cache key,
which did a query for the proper Site. However, in every realistic case,
that's going to be equal to Site.objects.get_current(), which either
will have been fetched at that point, or soon would be anyway.

We now fetch this and, if it's the ID we expect, we set the current
instance to it. That reduces an unnecessary query per request.
Merge branch 'release-0.7.x'
Fix inlineEditor dirty detection with hasRawValue.

When hasRawValue is true, and the current value has any otherwise
HTML-escapable content, the field would always be dirty after any key
press. Simply moving the cursor would mark it as dirty.

We now only htmlEncode the current value if hasRawValue is false.
Fix auto-sizing the inlineEditor when forcing an auto-size.

When editing Markdown in Review Board, the inlineEditor will sometimes
size itself too short. This seemed to be due to telling it to animate
when forcing, which was probably not what we wanted. By forcing
animation to be off in this case, the sizing matches what is expected.