role lib fix, smarty dirs fix, config is smarter now, user/session/userlib handling fixed and weird old code removed