Fix authorization for testsuite and testcase views.
Fix authorization for testsuite and testcase views.

Replace check_request_auth which should be only used in views that
support token authorization.
Add job level authorization for test case view when only test case ID
is used for resolving the object.

Change-Id: I356be50137741282077e3195b3fbd967491b8d88

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server