Refactoring the pin section of the API
Last section of express route refactoring for now.