fix gravity warnings
add barbutton and lifecycle handling
popup repositions on rotation
remove some not needed code
Merge pull request #2 from mysterioustrousers/fix-popover

Fix popover