Lay the initial ground work for the port

This code is the first attempt at getting a working port for PuppetDB.