Fix to change pinFile to use POST instead of PUT. 

Also fix to the unPinFile function to fix a null pointer exception. Ran the fileService unit tests ,which all passed.