[Ryan] Removed unused api routes from routes file.
Ryan - Refactored pin generation. Pulled out a PinGenerator class.
[Ryan] Another fix for turbolinks and javascript. Had to add a listener for document ready event in addition to page:load in order to handle reloads and other scenarios.