Refreshed: a bunch of changes, mostly cleanup and some small tweaks:
* CSS: spacing + removed list-style-type from <li> elements in #rightbar-top
** TODO: the CSS file *really* could use some comments...
* JS: spacing, swapped double quotes to single
** TODO: use $( selector ).on( 'click', function() { ... } ); instead of $( selector ).click( function() { ... } ); (.click and its friends are considered deprecated, as per the jQuery API documentation)
* PHP:
** removed unused globals
** swapped some globals to their proper RequestContext equivalents
** removed warning suppression (wfSuppressWarnings())
*** there was no wfRestoreWarnings() call even though there should've been
*** suppressing warnings is bad practise anyway, as it'll only hide the issues, instead of allowing them to be discovered and fixed
** wrapped avatar initialization in a class_exists() so that Refreshed can be used on sites where SocialProfile is not installed (at least theoretically)
** used wAvatar's getAvatarURL() function for building the avatar <img> tag instead of trying to build it directly
** removed an uninitialized variable ($options) that was being passed to makeLink()
** swapped raw HTML to a Linker call
** moved hard-coded English text into an i18n message
** for the "if user is editing" check, added a check for action=submit (preview mode); there are probably other "edit" actions that we should be checking here...and maybe also things like diffs?
** double quotes -> single quotes
** spaces -> tabs for indentation
** added some FIXME/TODO comments re:the footer hook for displaying ads
** removed $this->html( $category ) as it was generating E_NOTICEs and didn't seem to do anything
** updated Finnish (fi) i18n
** reordered the messages in the i18n file and added Vietnamese's (vi) autonym