Added PDO support
Clean attempts to set authkey by javascript from json data responses