Authentication API draft

Might need some refinements but it works and is needed for the branch gestpay_s2s of OWUMS.