Refactor some more checks to prepare for additional commands.
- Added DraftRename command
- In the process more stuff was refactored, including a separate send
function handling curl