Added the beginnings of the rest api's.