Add gemsetup + config setup + revision setup.

Also see http://railswizard.org/3fc3c0a393057bdb9071.rb for ideas.