refactored site auth. Removed unused files and settings.