Added closeOnClickInPopup config option. If true, clicking inside a popup will close it.