Fixes to glfw host
 - put glfwSleep() function in main loop to stop moai hogging the cpu
 - cleared the memory for button and analog buffers to stop spurious events occurring on first update