Made admin data private, organised main script

Moved admin variables to admin script and changed all references to them
to interface functions.

Organised main script a bit more, made comments more consistent, moved
some include lines to their correct locations.

Removed some unnecessary things.