1. Added error handling codes.
2. Added some timing/cache cases.
3. Added constants to proxy-headers.h