wscp-test: Start writing HTTP RPC handling code

This is all untested, probably doesn't work yet. Should be close.