Initial big commit. Copied files over; empty shell of site is now online.
Security changes and removed a lot of unnecessary old code.
Test update.
Upload form now loads, uploads still unhandled.
misc functions