Refactoring. Moved shared code into separate functions.
Added edit action for DNS module's CLI mode. Hostname editing supported.
Updated changelog.