resource skeleton

Introduce resource as per REST spec and crud resource for nicer API