[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

Ticket: http://tracker.phpbb.com/browse/PHPBB3-12239