Fix #246. Add user details to index endpoint.