Added possibility to login and logout, now compatible upto DSM 5.0-4493