feat(popover): add autoClose option for click outside to hide

Attempt to integrate Nimaen ideas - https://gist.github.com/Nimaen/384c5360c8ebad49b27f - into the popover to auto hide when clicking outside of it. #309 

Added the code to the tooltip base directive so it can be used with other controls also.

Seems to work on initial testing, but I hope some others can test it as well.