Moves api files to api folder and adds get all teachings endpoint