Fixed bug in responses with overwriting 'json'.
Added template for tasks/index.html