Refactored code. Combined all non-body requests together.
Added support for delete.