Changed as_json method for questions and answers, and added API layer to questions#index and questions#show