[[ RefactorGraphics ]] Added initialize and finalize functions to libgraphics and hooked into engine.
[[ RefactorGraphics ]] Tweaked implemtation of cachetable in libgraphics.