Add afterrender hook

It's nice to be able to run some code after render has taken place, i.e. code that needs the rendered dom available etc.