ReQuest is a library for use in tool development.
It's a full implementation of HTTP complete with simple routing, and built-in support for file uploads, cookies, and WebSockets. With clever use of WebSockets or AJAX, you can use it to develop truly custom GUIs that work across all platforms!
Lots of example code is included, just install and go to Tools > Start Server to see it.