Checking in some initial ideas on the server side API.
Made changes to get the code compiling.