added afterAdd hook for objects.

Better than extending add() methods!
Performance optimization of GiTemplate

I no longer add empty chunks into ->template. This should make
rendering up to twice as fast especially if you have many tags in your
template following one another.