fixes #2969 - remove all legacy api code in UI controllers + fixes #2985 remove #as_json + fixes #2986 remove #show

I left the json code in the following controllers as they don't appear in the API code
* StatisticsController
* TasksController

Also, the json code used by the UI was of course not removed