changed home page and home view to deliver json when Accept header has a...

...ppliction/json in it