Move chart function to chart controller.  Use objects instead of XREFs
Move global functions to classes.  Use class-based logs.
Move remaining functions from authentication.php to better location
Find special characters - hebrew/arabic do not have upper/lower case letters
Provide support for old versions of PHP with no secure crypt functions
Use fewer global variables
Remove more global functions
XREF not shown on ancestry chart options form