Code restructuring for deployment over NGinx