in reply to A restful back end

The suggestions already provided are very good. I want to add that however you choose to implement your API, be sure to use a standard pattern for your API calls and also take the time to become familiar with Test::More

Implement and maintain tests for everything - Trust me, a little pain doing this is much preferable to more pain when you make a "small" modification that snowballs out of control