Added option to send PUT request to server instead of CREATE

See code, added a 'method' option that can be overridden at initialization.