Fix 404 JSON response.
Set correct content type for JSON responses.
Add JSON request for issue listing.