register.php: fix syntax errors
fix paths to moved files, fix error reporting
add DOCTYPE
rework form for registration with CSS styling & HTML5
fix registration API token URLs