Done the changes commented in #45

This commit adds the possibility to use a hash token for webapp authentication instead of passing the password.