API: tests, filters, permissions...

* added all fileds to filtering
* added cached version to excludes field list
* added permission filter 
* added tests to resources status code
* removed src/ralph/util/api.py (unused code)