Added tests for Request class.
Error code for unsupported HTTP version changed from 501 to 505.
Store headers in case-insensitive map instead of capitalizing field names.