More rpc debugging. Now outputs good json on GetDirectory().
Change makefile to support multiple targets