Fix mainloop sync

Ugly monkey patch to make sure sync is called after everything else
is done and before we enter the mainloop again and may sleep.
Add HTTP call to "press" buttons