Fixed ending early bug

Fixed bug where script would end before all windows were set.
Background.js

Added an event page to handle the actualy moving of windows. This stops
the script from dieing early.
Better error checking

Also get the current screen directly instead of searching for the
focused screen.
Working buttons