Inherit hooks when nesting

Note that for now, the hook ctx.instance will be the root/entry object.

Added `mounted` event - should be useful in other ways too.