initial code commit

structures and tests for API and Server