Add FCGI request parsing helper

Also:
* Update unit tests
* Add TIMEVAL_* macros to simplify TIMVAL to double conversions
* Add FCGI_EscapeJSON to escape strings that could have special characters that could break a JSON string representation
*