debug -> functions.php
Fixed typo in script type. "applicatoin"?
Added min and max attributes to pin, forcing numbers between 0 and 9999
Updates for AJAX form submissions
Moved $_REQUEST handling to ajax.php
Created: includes basic if/switch and single form case with nonce checking
Created for server sent events. Mostly good as an example
Indent fixes and created timestampServerEvent()

timestampServerEvent is mostly for example of using server events
along with time.php