fix require paths
fix date handling
fix html escaping of passphrase etc
don't use fancy json_encode options if php is too old
give user feedback if credential is generated