Rewrote the code foundation for custom F3 stats. Object orientation ftw!

Signed-off-by: Patrick Dinklage <pdinklag@googlemail.com>