Moved buddylib function from menu.lua into buddylib.lua
Reimplemented pause on window lost focus functionality