Ust 3000/dev/3695 add rest authentication

need to be rebased ... code is quite ugly in management.html page