Initial commit

Sorry for the rather large initial commit, this was developed at rather
to much pace while trying to diagnose a performance issure with our node
web app.