basic non tested REST based approval-shudn work
moving to php api
minor edits: closing this project