fix issue with macosx ancient sed command
fix completion bug for resources with port
fix tmpfile creation
add delete, put and edit commands