[ticket/12239] Move deprecated passwords functions to compatibility file

The deprecated passwords functions are no longer used in the core and have
been replaced with the passwords manager. Therefore, the functions are
moved to the functions_compatibility file.

PHPBB3-12239
Merge pull request #2087 from marc1706/ticket/12239

[ticket/12239] Move deprecated passwords functions to compatibility file