Enhanced users#index to respond to requests for JSON