Adding functionality to PDCLI.

Fixing the issues with pdcli to add support for using the left and right
arrow keys properly. Also adding the ability to delete and insert text
within a line of text. This follows what users would expect from a
'terminal' like application.

Signed-off-by: Dale Willis <dale@paradrop.org>