Perhaps a more generic afterRender() hook could be added as well. I can totally see custom widgets needing to add script files or possibly css files.