update routes and function details

routes first check if resources exist, if the user is allowed and then
process the work

camomile server 2.0.txt detailed :
- the data structure
- the function of the different API