replace static functions in OTPassword.cpp

First part of the set of patches that rewrite
OTPassword.hpp and OTPassword.cpp

In this patch the API dosen't change, however the
code behind the static functions in OTPassword is updated.