Trying to make it overwriteable in main.inc.php
Move password function into own class
Remove realpath test, this just works on local files