Functionnal authentification and settings storage

The code is very messy but it's working !!