Multiple OS support and enhancements.

Added session based verification for request time.
Added verification for ajax request.
Added multiple OS support for uptime.
Cleaned up some code.

Teste on a CentOS server, an Ubuntu server, a mac laptop with OSX Mavericks and on WIndows 8.1 using WAMP.

Should basically work.