fixed comment syntax (## to //) for dot syntax
Updated demo sites. moved record.php into lib and we now prevent php error on undefined index at $_SERVER["HTTPS"] and $_SESSION["state-variable"].
Minor fixes, moved licence and anchors are now working correctly.
Merge remote-tracking branch 'origin/master'