fixing bugs for login view and reconstruct arch
System Beta

 -- finish user details view
 -- import Smarty Templating system
 -- add functions to libauth, and use them instead of querying session data
 -- styles the application
 -- file access permission changes