Change pinFolder to use POST instead of PUT, to match what is specified
in the connections API doc, also Fixing a null pointer exception in
unPinFolder(). Added unit tests for pin and unPin folder methods.