resource backend and tests
fix conflict
Merge pull request #24 from thewillhuang/resourceRoutes

resource backend and tests