Merge pull request #1 from marado/master

several bugfixes
check database and create initial user, (requires latest phplib/db_mysqli.inc)
add some sane permission defaults for when config is missing
move PERMS setup from checkperm.inc to prepend.php, add other new functions to prepend
user login management program
add new database tables required for new features
change database driver to PHP Data Objects
fix path for $_ENV["local"]
add new zone/records browser which uses phplib (largely autogenerated code)
Use Proper database quoting instead of addslashes and use password hash_auth function
And I guess we'll need the password hashing function
Removed the 'initialuser' script, since upstream has a new way of doing it
Merge remote-tracking branch 'upstream/master'