authentication and admin / common user interfaces. Splited scripts and refactorized. Still a work in progress.
fixed the id issue