Updated serverside protocol to use challenges

Only skeletal support on client side (comments only)- need to work on that