p2ptrade: HTTP comm and command-line operations