Rename RPC methods.
Start implementing a separate cache.

This moves some code around and starts defining some data structure to store our
actual cache.
Add a function to get the current directory easily.
Add a function to compute absolute paths.
Add a function for lazy chdir.
Use the client's current path when compiling stuff.