Add api directory structure, ping test and modify load_api to automatically handle all api endpoints