Add initial stubs for caching P4 requests.
Improve error handling and Perforce login workflow.