started php rest interface abstract
added concrete API class
Merge pull request #3 from Danlock/master

api