Add a prompt() function to replace input().

It is just experimental, as this complicates things up. So I'm just
playing with this, until I get familiar with it.

Signed-off-by: Thiago Farina <tfarina@chromium.org>