Kbarber ticket/master/manage postgres apt repo

This is just ken's pull request (#71) rebased onto the latest master--it was failing because it was missing a fixup commit that I'd merged yesterday.