Versions of POST and PUT that take strings as uris

also cleaned up method code a little