Fix unhandled XML parsing error with FOAF

Some FOAF data comes back with invalid encoding in the interest field. This
is presumably due to an old bug in encoding the data for the database on the
remote end.

Anyway, the importer already handles the case where we can't get FOAF data
(since that's how it works for suspended users), so we are now lumping
failed-to-parse users in that category.

The only impact is that for the (very rare) user with this problem, if they
try to import their bio, it won't come over and they will have to manually
add things.
Fix a problem with the latest things feed not expiring tags that haven't
been used in a while. Now we get them a 24 hour window -- if a tag shows up
in the list, if it hasn't been used in 24 hours, we drop it.
Markdown ninja-commit (testing)

Discussion and hack time at YAPC::NA has caused me to implement this
(hacky) way of using Markdown on Dreamwidth. In short, if you make
the first line of your post be "!markdown", the rest of the post is
interpreted by the Text::Markdown module.

This also enables a version of the testing user-reference code that I
am playing with. This is the Twitter style of "@foo" referring to a
user. You can also do "@foo.livejournal.com" to refer to a LiveJournal
user.

Most user tags that you would originally write like this:

    <user name="foo" site="foo.com" />

Can, if Markdown is enabled, be this:

    @foo.foo.com

NOTE: this is being committed to give people the chance to play with it
if they want. The implementation is subject to change after discussion
and testing.

MORE NOTE: this only applies to entries. We could add this to comments,
but haven't yet.
Fix slow active entries query

This query was bad. It would, on certain communities with many comments,
take over a minute to run. This causes page timeouts for viewers of
those communities every time someone comments -- very unfortunate.

This commit causes the query to work fast, but it is slightly less
accurate. No private information is exposed (except the fact that
comments were manipulated that you can't see), but that's better than
removing the feature or having the database die.

The better fix is to do some sort of kind of array that gets updated in
the correct cases, but I'm going for quick-and-dirty right now.
Fix slow active entries query

This query was bad. It would, on certain communities with many comments,
take over a minute to run. This causes page timeouts for viewers of
those communities every time someone comments -- very unfortunate.

This commit causes the query to work fast, but it is slightly less
accurate. No private information is exposed (except the fact that
comments were manipulated that you can't see), but that's better than
removing the feature or having the database die.

The better fix is to do some sort of kind of array that gets updated in
the correct cases, but I'm going for quick-and-dirty right now.
(Bug 4426) Fix postfix conditional declaring a variable. This is invalid and causes issues in certain cases.
(Bug 4429) Add new themes to Strata.
(Bug 4440) Don't send notifications if the recipient can't see the comment.
(Bug 4463) Typo.
(Bug 3669) Preview image for the Wide Open style, Koi theme.
These should not be executable. Not sure why they are.
(Bug 4472) The S2 wizard tried to detect default values and ignore them. The
problem was that equality was defined as either "both are undef" or
"both are defined but the same".

There is a corner case though: if the style has no default (undefined),
and the user has no default (which might show up as undef and catch in
the above case) or it might be defined but the empty string -- which is
not a value in this context and should be treated as undef.
(Bug 3669) Add in missing images (my bad!)
(Bug 3172) Always apply comment title colors in Crossroads.
(Bug 3172) Style things which are screened/frozen/have ECHI the same as if they had comment subjects.
Fix overlapping of text when there's no subject.
(Bug 4267) Add links to memory categories on memadd.bml.

* Adds a link to the categories the memory is filed under after you've created a new one
* Adds a link returning you to all your memories after you've deleted a memory
(Bug 4385) Provide a "small images" toggle for the new icon browser.

- also, first patch by dunvi!
(Bug 3877) Point out that the comment text is in the original notification.

(Welcome swaldman!)
(Bug 2595) Handle "--&nbsp;" in addition to the previous "-- " case.