Implemented pin request functionality

+ added a function which loads the XML data through AJAX
+ added a function which handles the XML response
~ some code structure edits