Iss #10 - Add retirement endpoint logic
This encompasses adding all logic required for the retirement endpoint, including most of the supplemental APIs and imports. Some minor cleanup and generalization will likely happen after the updates to add the provisioning logic.