Legacy xml rpc

This is a checkpoint (current implementation status is tracked in issue #59) to save merge nightmares in model code.