Adding pyramid view to return json.
Add template for index.