Add a simple chatserver with html frontend

This change includes a chat server with a very crappy but functional
html/js frontend. Added cJSON to the project, but only chatserver has a
dependency. Tested only in google chrome ("34.0.1847.116 m" at the time
of this writing). Also includes some renaming/fixes to endpoint.[h|c]
and server.[h|c].