Add tests for key util.
Move proxyRequest to proxy module.
Add some docs to key-util.