Refactored FetchMetadata to Url2TextResponse.
Massive refactoring, preeparing for REST server version.
Added test case for KeyValuePair class.
Completed unit tests.