Fix for Imports in Nginx Script

The nginx script was missing some imports (it was hacked together out of
a python script). It hasn't been fully tested yet and still needs a
depency from the toolbox directory that isn't on the master branch in
the git project.