added basic skel of rest api
added basic api functions
added edit/create/delete actions