Resolved TODO's in the code

api.c now cleanly handles size_t vs int.
Simplified the HTTP-header output in cgi.c as well as handling the
CONTENT_LENGTH request header better (checking for overflow/underflow or
negative values).
Format the code to be consistent with slash
Updated README.md TODO list and fixed a typo