added products_controller to render json and added http call from angular to rails