rewritten history panel code.

It doesn't load from git the list each time, the 3 parts of the panel script are now splitted in 3 functions and some little bugs are fixed.