Uniformize sendPin interface

All send-pin functions now use the same function, and return an integer
indicate succes or number of tries left.
Also return tries for updatePin