Hey Viperia,
I was looking for the same, then i remembered an old source from 2005 called BTsource (can find it
here.
There are many bugs and most of the features arn't working, but it is reasonably well coded and well commented so its easy to edit and understand.
There are at the moment xss issues, nothing that's not easily fixed.
I am in the process of making my own source using this and some others, something very simalar to what your after, so maybe a collaboration may be in order?
Phogo