Reposition popover when window is resized
Add class 'trigger' to popover trigger and fix position
Close settings popover when clicking outside it. Fix #10