Various refactorings towards Ruby/Rails idiom from Josh Susser and Avdi Grimm