Aded autoUpdate and autoLogin functions, changed authorisation mechanism.