initial commit of reference implementation

This pull request is here for reference for the Reference Implementation.  We should leave this branch here so we can easily create new servers that follow roughly along the same lines if we want.