Added filters.js in routes, and a way to add guards in apis.

ToDo:
1. Finish data api for nested models;
2. Finish nested model clean-ups (with refBy);
3. Finish file api;
4. Finish logic api;
5. Finish model auto report api to Resource
6. Fix authorization middleware and mutex guards, file limit guards…
...