Changing Distribution to Pool
Moving security methods into the api.rb
Support for DELETE and HEAD