Basic API logic, logic stubs, and server startup