rl_helper: implement a minimal line editing prompt

With this helper, we can replace fgets and printf, so we are able to do
editing line and command history.
rl_helper: add rl_printf function

That helper function replace normal printf, so our prompt it's not
overwritten.
rl_helper: initial support to sequence codes

Some keys generate sequence of codes, so we need to parse they in a
different way.
rl_helper: add support to manage prompt string

If we want to change prompt string, we need to manage it inside
rl_helper.
Initialize rl_helper and feed it
Remove cmd_prompt

We don't need cmd_prompt anymore. It is handled by rl_helper.
Replace printf with rl_helper version

To make a better visual interface, we need to handle printf calls at
rl_helper.
Fix code lines too long

After we replaced printf by rl_printf, some code lines doesn't fit in 80
chars anymore, so we need to rearrange these lines and fix any code
style issues.
Format state in string before printf it
Format string message before print it at parse_ad_data