I've added the localized PageRank functionality which give properly weighted popularity score (not only the number of votes as in standard model).
Your comments and suggestions are welcome.
UPD: now with caching and PageRank score explanation
UPD2: friends table can be exported to the journal
UPDX: Script is UP AGAIN !!! (since 14/12/2010)