added 'loaded' to the template binding

If you pass a writeable observable named 'loaded' to the template bindgin, you can get notified when the template is actually loaded.