Make callOnIdle more robust
Update eventtest.html, add support for gyro

Conflicts:
	layout.js.map
Clean up inputtext and keyboard events