Added the api directory
Started work on the api
Tidied up and merged the start of the API