handle the case if origin is outside visible area
Merge branch 'master' into popover

Conflicts:
	src/js/jquery.popover.js
top and bottom popover
Use string concatenation for adding classes
Popover: cleanup only after the element is removed
Trigger events only after the element is removed