extracted set_duration in errandscontroller
used update_attributes to save a line in trips_controller#finalize
extracted update trip from tripscontroller#create
moved update_trip to model
moved set_duration from controller to model
used curly braces for a map block instead of do end
Merge pull request #46 from LightningLord/misc_refactoring

Misc refactoring