pinRequest now only generates pins. pinRegister is now responsible for the registering process. New jsontools.php library