added controllers and models for rails and ember