fixed related_posts plugin

``related_plugins`` plugin was simply broken. It was collecting the articles in a *global* list, which not only produced wrong results but also grew quadratically after each article. Obviously, blogs with large number of articles were affected the most.

This also changes the proposed setting in #700, from a ``dict`` with a single entry to a simple ``int``.