Initializes Rails application.