Added tests for viewing triggers and logs.

If not found then return 404 instead of 500.

Updated README