Simplified some of the logic and implemented support for hanging GET requests. Th latter will increase the responsiveness of the system.
Moved AppEngine files to the root directory to facilitate code sharing between the server and the client.
Factored out some logic that will be helpful in the client.
Updated poll to operate on JSON and to take advantage of the hanging get.