added bower support
Added better support for errors
now handles ~deltas array for a PUT request