puppetlabs/puppet-server — pull request #260 by cprice404 (2014-10-31 23:33:24+00:00)
Title: FOR REVIEW: (SERVER-112) clean up master.rb

NOTE: This PR is based on the one that tweaks the REPL stuff. It'll need to be rebased after that gets merged. Posting it now just for review purposes.
-----------------------------

In some forthcoming changes for SERVER-112, I'm going to need to pass some additional data in to the constructor of the `Puppet::Server::Master` class. As I was refactoring it to allow this, I felt like a general cleanup was overdue.

This PR has several incremental commits that lead to what I think is an improved organizational structure for the relevant code that used to be in `master.rb`, and which will make it much easier/cleaner for me to do the follow-on work for SERVER-112.