promotecontroller: Fix long lines

Remove unused 'subk' variable
Promote_Graph: Move logic out of template
Promote_Graph: Add predicted impressions

The admin view of Promote_Graph will now show the
predicted impressions. This also stubs out the
scheduled impressions.
promote_graph.html: Add 'scope="row"'
promote_graph: Use CSS to capitalize headers
Move _cost_per_{mille,click} functions to promote.py
Use promote.cost_per_X functions in Promote_Graph
validatedMultipartForm: Fix json library not imported.
Add per-subreddit gilding listings.
Add /comments/gilded link to /r/all sidebar.
Use profile page mode for all /comments/gilded listings.
Add timestamp to debuginfo footer text.
Get rid of awkward and underused utils.to_js.

Buttonlite didn't really do anything with this function since it
disabled callback *and* escape.

The response wrapper fixes a bug where the callback is a unicode object
and since the content object is UTF-8 encoded things go south ("'ascii'
codec can't decode byte ...").

This also removes a few scattered imports of the function that were
unused.
embed/wired/widget: Add callback validation à la JSONP.
ErrorController: Don't ever return a body in 204/304 responses.

This should fix an issue where we return a JSON body for 304 responses
to API requests which is invalid according to the HTTP spec and appears
to be causing bad data to get cached in the CDN.
ErrorController: Fix bad failien URL on handle_awful_failure case.
Fix use of StackedObjectProxy pylons.response in debug error pages.

This caused some debug page static files to generate an error.
Don't write the pagecached content twice.
Move render info blurb out of redditfooter to avoid caches.

RedditFooter is a CachedTemplate and so the blurb which is supposed to
be unique to each request is being rendercached.
traffic: Generalize max-row highlighter and use on all columns.