Initialize rails application.