Get and POST call functions

DRY: Put functions for calling remote endpoints into their own web services file.

Note: The intention is to expand this with, for example, functions for pulling out endpoint urls out of headers and preparing data for transport.