Refactor index and show actions with TrainLine and Bar classes

Add bar class, remove bar business logic from main controller

Add newline at end of bar.rb model.