fix the memory leak when the content contain directive with isolated scope

1. create new child scope from the given one
2. destroy the child scope when the popover is hidden
fix the unit test "popover should emit an event on hide" "popover should emit an event on hidden"