refactor and clean up the javascript code for the expand/collapse buttons, and apply the same logic to files being diff'd on the revision view. the primary difference is that a revision starts out expanded, since otherwise there's not much to see. also, change the terminology from "show/hide" to "expand/collapse" on nicholas allen's recommendation.